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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-3156 PoC — Sudo 缓冲区错误漏洞

Source
Associated Vulnerability
Title:Sudo 缓冲区错误漏洞 (CVE-2021-3156)
Description:Sudo是一款使用于类Unix系统的,允许用户通过安全的方式使用特殊的权限执行命令的程序。 Sudo 1.9.5p2 之前版本存在缓冲区错误漏洞,攻击者可使用sudoedit -s和一个以单个反斜杠字符结束的命令行参数升级到root。
Description
CVE-2021-3156
Readme
# Exploit CVE-2021-3156

## Executing: <br>

```bash
$ git clone https://github.com/RodricBr/CVE-2021-3156
$ cd CVE-2021-3156/
$ chmod u+x programa.sh
$ ./programa.sh
```

## One-Liner: <br>

```bash
AA=$(sudo --version | tr '[:space:]' ','| tr -d '.'  | cut -d ',' -f3 | awk '{print $0}'); [[ "$AA" -lt 1828 ]] && echo -e "Exploitável\nCVE-2021-3156"; [[ "$AA" -lt 1827 ]] && echo -e "Não é Exploitável!";
```
File Snapshot

[4.0K] /data/pocs/abb08f5dc2c45d96a4594ba22d83b3e14fceca95 ├── [ 337] programa.sh └── [ 415] 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.