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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-29447 PoC — WordPress Authenticated XXE attack when installation is running PHP 8

Source
Associated Vulnerability
Title:WordPress Authenticated XXE attack when installation is running PHP 8 (CVE-2021-29447)
Description:Wordpress is an open source CMS. A user with the ability to upload files (like an Author) can exploit an XML parsing issue in the Media Library leading to XXE attacks. This requires WordPress installation to be using PHP 8. Access to internal files is possible in a successful XXE attack. This has been patched in WordPress version 5.7.1, along with the older affected versions via a minor release. We strongly recommend you keep auto-updates enabled.
Readme

# POC CVE-2021029447 - XXE in WordPress
# WordPress 5.6-5.7 - Authenticated (Author+) XXE (CVE-2021-29447)

- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-29447


## Using

### Step1. Run WordPress

```
$ make up-wp
```

### Step2. Run Attacker web server

```
$ make up-mal
```

### Step3. Generate malicious WAV file

#### With wavefile npm

```
$ make make-wav
```

### Step4. Login to WordPress & Upload WAV file to New Media

```
open http://localhost:8000/
open http://localhost:8000/wp-admin/
```

vedi in console il file trafugato e puo' essere decodificato

# Risorse online


info sui comandi possibili nel file attaccante dtd https://www.php.net/manual/en/wrappers.php.php



### Spiegazione codice vulnerabile

https://github.com/Abdulazizalsewedy/CVE-2021-29447


### Walktroght 
- https://www.youtube.com/watch?v=tE8Smz1Jvb8
- https://github.com/Slowdeb/Tryhackme/blob/dfbdebe880ddcb5fbfc1f8608812a0e79fd7cf24/Wordpress-CVE-202129447.md?plain=1#L69
    Create a php reverse shell with "msfvenom" or use the awesome php reverse shell from [Pentestmonkey](https://github.com/pentestmonkey/php-reverse-shell). 

### Altre risorse
- https://www.trendmicro.com/it_it/research/19/d/zero-day-xml-external-entity-xxe-injection-vulnerability-in-internet-explorer-can-let-attackers-steal-files-system-info.html

File Snapshot

[4.0K] /data/pocs/5479775ce5065d1b37f210b914e31d1ca942103e ├── [4.0K] attacker │   ├── [ 525] decode.php │   ├── [4.0K] malicious_wav │   │   ├── [ 412] index.js │   │   ├── [ 54] package.json │   │   └── [ 818] package-lock.json │   └── [4.0K] www │   ├── [ 193] evil.dtd │   ├── [ 413] evil_.dtd │   └── [ 209] evil__.dtd ├── [642K] attack_info.jpeg ├── [ 490] docker-compose.yml ├── [4.0K] examples │   ├── [ 334] 01.xml │   └── [ 159] 02.xml ├── [ 833] Makefile └── [1.3K] README.md 4 directories, 13 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →