Difference between revisions of "Mobile code: invoking untrusted mobile code"

Jump to: navigation, search
(External References)
(Related Threat Agents)
Line 31: Line 31:
==Related [[Threat Agents]]==
==Related [[Threat Agents]]==
[[:Category: Logical Attacks]]
[[Category:FIXME|need links]]
==Related [[Attacks]]==
==Related [[Attacks]]==

Revision as of 17:52, 12 September 2008

This is an Attack. To view all attacks, please see the Attack Category page.

ASDR Table of Contents


This attack consists on manipulation of a mobile code in order to execute malicious operations at the client side. By intercepting client traffic using the man-in-the-middle technique, a malicious user could modify the original mobile code with arbitrary operations that will be executed on client’s machine under his credentials. In other scenario, the malicious mobile code could be hosted in an untrustworthy web site or it could be permanently injected on a vulnerable web site thru an injection attack. This attack can be performed over Java or C++ applications and affects any operational system.

Risk Factors



The following code demonstrates how this attack could be performed using a Java applet.

 // here declarer a object URL with the path of the malicious class
 URL[] urlPath= new URL[]{new URL("file:subdir/")};

 // here generate a object “loader” which is responsible to load a class in the URL path
 URLClassLoader  classLoader = new URLClassLoader(urlPath); 

 //here declare a object of a malicious class contained in “classLoader”
 Class loadedClass = Class.forName("loadMe", true, classLoader);<br><br>

Related Threat Agents


Related Attacks

Related Vulnerabilities

Category: Unsafe Mobile Code

Related Controls

To solve this issue, it’s necessary to use some type of integrity mechanism to assure that the mobile code has not been modified.