Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2020-7247 PoC — Openbsd Opensmtpd代码问题漏洞

Source
Associated Vulnerability
Title:Openbsd Opensmtpd代码问题漏洞 (CVE-2020-7247)
Description:Openbsd Opensmtpd是Openbsd组织的一个基于RFC 5321的SMTP服务端软件。 Openbsd Opensmtpd 存在代码问题漏洞。远程攻击者可通过特制的SMTP session利用该漏洞以root权限执行任意命令。
Description
OpenSMTPD version 6.6.2 remote code execution exploit
Readme
# cve-2020-7247
Exploit Title: OpenSMTPD 6.6.2 - Remote Code Execution.  
The new Date: 2020-01-29.  
Exploit Author: 1F98D.  
Original Author: Qualys Security Advisory.  
Vendor Homepage: https://www.opensmtpd.org/.  
Software Link: https://github.com/OpenSMTPD/OpenSMTPD/releases/tag/6.6.1p1.  
Version: OpenSMTPD < 6.6.2.  
Tested on: OpenBSD 6.6, OpenBSD 6.5, OpenBSD 6.4, OpenBSD 5.9.  

OpenSMTPD after commit a8e222352f and before version 6.6.2 does not adequately escape dangerous characters from user-controlled input. An attacker can exploit this to execute arbitrary shell commands on the target.

# Usage

```
sudo apt install python3-pip
pip3 install --user pwn
python3 poc1.py LHOST LPORT RHOST RPORT
```

# Credit
https://packetstormsecurity.com/files/156145/OpenSMTPD-6.6.2-Remote-Code-Execution.html
File Snapshot

[4.0K] /data/pocs/46a8ce542851877e7333bec81fe22fb06f0dde64 ├── [1.8K] poc1.py └── [ 817] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.