POC详情: c49bc07da3ac691dca2510f205b5b4b1871e7c2a

来源
关联漏洞
标题: Apache Struts 2 安全漏洞 (CVE-2021-31805)
描述:Apache Struts 2是美国阿帕奇(Apache)基金会的一个用于开发Java EE网络应用程序的开放源代码网页应用程序架构。 Apache Struts 2.0.0版本至2.5.29版本存在安全漏洞,该漏洞源于对不受信任的用户输入在标签属性中使用强制 OGNL 评估。攻击者可利用该漏洞进行远程代码执行并导致安全性降低。
描述
S2-062 (CVE-2021-31805) / S2-061 / S2-059 RCE
介绍
# CVE-2021-31805
## Remote code execution S2-062 (CVE-2021-31805) Due to Apache Struts2's incomplete fix for S2-061 (CVE-2020-17530), some tag attributes can still execute OGNL expressions, The vulnerability allows an attacker to construct malicious data to remotely execute arbitrary code.
### CVE_2021_31805_POC_EXP.py
#### POC
pocsuite -r CVE_2021_31805_POC_EXP.py -u url

![1649996853(1)](https://user-images.githubusercontent.com/54984589/163518507-b5732b18-a9f7-473b-93a8-712d08e1f7a6.png)

#### EXP
pocsuite -r CVE_2021_31805_POC_EXP.py -u url --attack --command "[command]"

![1650007730(1)](https://user-images.githubusercontent.com/54984589/163539455-ce3e948e-44f0-4879-946e-64687b49368f.png)


# 免责声明
## 此工具仅用于学习、研究和自查。不应将其用于非法目的。使用本工具产生的一切风险与我无关!
# Disclaimer
## This tool is for study, research, and self-examination only. It should not be used for illegal purposes. All risks arising from the use of this tool have nothing to do with me!
文件快照

[4.0K] /data/pocs/c49bc07da3ac691dca2510f205b5b4b1871e7c2a ├── [5.7K] CVE_2021_31805_POC_EXP.py └── [1.0K] README.md 0 directories, 2 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。