|
|
|
Java Trusted Method Chaining CVE-2010-0840 ZDI-10-056 |
Si vous voulez bloquer ce service sur vos fils RSS
Si vous voulez nous contacter ou nous proposer un fil RSS
Menu > Articles de la revue de presse : - l'ensemble [ tous | francophone] - par mots clé [ tous] - par site [ tous] - le tagwall [ voir] - Top bi-hebdo de la revue de presse [ Voir]
Présentation : Relevant Identifiers ZDI-10-056, CVE-2010-0840 Impact Privilege escalation of the Java security sandbox. The most obvious target would be the Java Runtime running Java Applets, JavaFX and Java Web Start applications in a web browser. Untrusted code will gain full privileges of the user executing the browser process. Oracle Java Patch http www.oracle.com technology deploy security critical-patch-updates javacpumar2010.html Steps to remedy Update to Java 6 update 19 Details Java code originating from the Java core classes in the JRE lib directory is considered trusted. Java code originating from an unsigned Java applet is considered untrusted. When Java evaluates privileges for any given operation, it considers the whole method call stack. For each item on the stack, the privileges of the class that defined the method in question are considered. Thus, if class Foo defines method call and class Bar is a subclass of Foo, and an instance of Bar is on the stack, and the method is call , the privileges of Foo, not Bar, are considered. It is possible to implement interface methods with methods inherited from a superclass For example, if interface CacheItem has void method delete and class Folder, which implements no interfaces, has a method with a compatible signature, it is possible to create a concrete class FolderPosingAsACacheItem which extends the Folder class, and implements the CacheItem with the inherited method without defining any methods of its own. There are hundreds thousands of trusted classes in the Java core that call methods on objects which can be defined by untrusted code either directly, via sub-classing or via deserialization. These methods can be arranged in such a way that a trusted thread such as one of the event threads may be chained into calling method A which calls method B which calls method C ... which calls method Z. As only trusted code will be on the calling stack, the privileged context of the trusted thread is maintained. If one finds a method Z that does something interesting, such as a parameterizable method invocation via reflection, that invocation will take place in a privileged context. This is very bad because it means that security relies that there not exist harmful combinations of methods signatures something that is not feasible to control, as opposed to the very controlled model of having a number of doPrivileged blocks which are known to be dangerous, but relatively easy to control. ZDI-10-056 CVE-2010-0840 leverages this by creating a trusted chain as follows - instantiate a vuln.Link subclass of java.beans.Expression pointing the invoke params to class java.lang.System, method setSecurityManager, args null - instantiate a new java.util.HashSet and put the vuln.Link which is also a Map.Entry in the Set - instantiate an anonymous subclass of HashMap where the entrySet method returns the instance defined above - instantiate a javax.swing.JList object, passing the HashMap instance defined above as the list contents - add the JList on any visible component such as the applet itself And here's what happens when the digital Rube Goldberg machine is set into motion - the GUI thread wants to draw the JList and calls JList.paint Graphics - JList while drawing itself, calls toString on the list contents, including said anonymous subclass of HashMap - HashMap inherits AbstractMap's toString method which calls entrySet .iterator and iterates the resulting Set, calling getValue on each Entry - one of the Entry objects returned by the implementation is a subclass of Statement, which implements the Entry interface's getValue method with the Statement.getValue - Statement.getValue calls Expression.invoke - Expression.invoke has been parametrized to call System.setSecurityManager null via reflection ...and Java security gets switched off. Safety First The vuln.Link class cannot be created with a normal Java compiler. Hopefully that'll keep the virus writers at bay, while the details enlighten the security community. The Fix Based on my very brief analysis, Java 6 update fixes this problem by altering the Statement.invoke to use the AccessControlContext captured at the moment of instantiation when it uses the reflection.
Les derniers articles du site " Slightly Random Broken Thoughts" :
- Java 6 update 26 is out - Inflated Java Malware Infection Rates - Oracle Java Applet Clipboard Injection Remote Code Execution Vulnerability - Java JFileChooser Programmatic Manipulation Vulnerability - Trusted Method Chaining for Network Interface details - Trusted Method Chaining to a System.exit - Hazards of Duke - Java 6 Update 22 is out - Breaking Defensive Serialization - Why Complex Powerful is a bad combination for security
Menu > Articles de la revue de presse : - l'ensemble [ tous | francophone] - par mots clé [ tous] - par site [ tous] - le tagwall [ voir] - Top bi-hebdo de la revue de presse [ Voir]
Si vous voulez bloquer ce service sur vos fils RSS :
- avec iptables "iptables -A INPUT -s 88.191.75.173 --dport 80 -j DROP"
- avec ipfw et wipfw "ipfw add deny from 88.191.75.173 to any 80"
- Nous contacter par mail
| Mini-Tagwall des articles publiés sur SecuObs : | | | | sécurité, exploit, windows, attaque, outil, microsoft, réseau, audit, metasploit, vulnérabilité, système, virus, internet, usbsploit, données, source, linux, protocol, présentation, scanne, réseaux, scanner, bluetooth, conférence, reverse, shell, meterpreter, vista, rootkit, détection, mobile, security, malicieux, engineering, téléphone, paquet, trames, https, noyau, utilisant, intel, wishmaster, google, sysun, libre |
| Mini-Tagwall de l'annuaire video : | | | | curit, security, biomet, metasploit, biometric, cking, password, windows, botnet, defcon, tutorial, crypt, xploit, exploit, lockpicking, linux, attack, wireshark, vmware, rootkit, conference, network, shmoocon, backtrack, virus, conficker, elcom, etter, elcomsoft, server, meterpreter, openvpn, ettercap, openbs, iphone, shell, openbsd, iptables, securitytube, deepsec, source, office, systm, openssh, radio |
| Mini-Tagwall des articles de la revue de presse : | | | | security, microsoft, windows, hacker, attack, network, vulnerability, google, exploit, malware, internet, remote, iphone, server, inject, patch, apple, twitter, mobile, virus, ebook, facebook, vulnérabilité, crypt, source, linux, password, intel, research, virtual, phish, access, tutorial, trojan, social, privacy, firefox, adobe, overflow, office, cisco, conficker, botnet, pirate, sécurité |
| Mini-Tagwall des Tweets de la revue Twitter : | | | | security, linux, botnet, attack, metasploit, cisco, defcon, phish, exploit, google, inject, server, firewall, network, twitter, vmware, windows, microsoft, compliance, vulnerability, python, engineering, source, kernel, crypt, social, overflow, nessus, crack, hacker, virus, iphone, patch, virtual, javascript, malware, conficker, pentest, research, email, password, adobe, apache, proxy, backtrack |
|
|
|
|
|