POC详情: babe21dacb503d12f5d1ad50dcf4d03dfe500ce8

来源
关联漏洞
标题: Sudo 缓冲区错误漏洞 (CVE-2021-3156)
描述:Sudo是一款使用于类Unix系统的,允许用户通过安全的方式使用特殊的权限执行命令的程序。 Sudo 1.9.5p2 之前版本存在缓冲区错误漏洞,攻击者可使用sudoedit -s和一个以单个反斜杠字符结束的命令行参数升级到root。
描述
clif is a command-line interface (CLI) application fuzzer, pretty much what wfuzz or ffuf are for web. It was inspired by sudo vulnerability CVE-2021-3156 and the fact that for some reasons, Google's afl-fuzz doesn't allow for unlimited argument or option specification.
介绍
![](https://andy.codes/assets/img/clif/clif_demo.png)

# clif
`clif` is a command-line interface (CLI) application fuzzer, pretty much what `wfuzz` or `ffuf` are for web. It was inspired by `sudo` vulnerability `CVE-2021-3156` and the fact that for some reasons, Google's `afl-fuzz` doesn't allow for unlimited argument or option specification.

# Usage
```bash
clif -e <executable> [-w <wordlist>, -n <number_range> -s <string_range>] -a "args_with_marks"

-e - executable
-w - wordlist
-a - arguments as string
-n - number range
-s - list of strings of 'A' a defined length range
```

# Example
```bash
# throw wordlist.txt as input
clif -e my_program -w wordlist.txt 

# throw wordlist.txt as -p argument
clif -e my_program -w wordlist.txt -a "-p FUZZ" 

# throw numbers from range 100..100000000 as the first argument
clif -e my_program -n 100..100000000 -a "-n FUZZ" 

# throw a string with length from range 10..100 as the first argument
clif -e my_program -s 10..100 
```

# Demo
In this demo, CLIF is used to fuzz an application that is vulnerable to BOF when processing its input arguments - if the argument is longer than 10 characters, the application crashes.

![](https://andy.codes/assets/img/clif/clif_demo.gif)
文件快照

[4.0K] /data/pocs/babe21dacb503d12f5d1ad50dcf4d03dfe500ce8 ├── [ 13K] Cargo.lock ├── [ 540] Cargo.toml ├── [ 864] figlet.txt ├── [ 34K] LICENSE ├── [1.2K] README.md ├── [4.0K] src │   ├── [4.0K] args │   │   ├── [1.3K] args.rs │   │   └── [ 35] mod.rs │   ├── [4.0K] fuzzer │   │   ├── [5.4K] fuzzer.rs │   │   └── [ 36] mod.rs │   ├── [3.6K] lib.rs │   └── [ 210] main.rs └── [4.0K] testdata ├── [ 371] bof.c └── [ 18] wordlist.txt 4 directories, 13 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。