POC详情: 8ebfeb01512c65ec8c94c273c99d2b21d43dda62

来源
关联漏洞
标题: Sudo 安全漏洞 (CVE-2023-22809)
描述:Sudo是一款使用于类Unix系统的,允许用户通过安全的方式使用特殊的权限执行命令的程序。 1.9.12p2 之前的 Sudo存在安全漏洞,该漏洞源于sudoedit(又名 -e)功能错误处理用户提供的环境变量(SUDO_EDITOR、VISUAL 和 EDITOR)中传递的额外参数,从而允许本地攻击者将任意条目附加到要处理的文件列表中 . 这可能导致特权升级。
介绍
# CVE-2023-22809
Ref: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-22809
## Exploit Title: sudo 1.8.0 - 1.9.12p1 - Privilege Escalation
 
## Exploit Author: n3m1.sys
### CVE: CVE-2023-22809
### Date: 2023/01/21
### Vendor Homepage: https://www.sudo.ws/
### Software Link: https://www.sudo.ws/dist/sudo-1.9.12p1.tar.gz
### Version: 1.8.0 to 1.9.12p1
### Tested on: Ubuntu Server 22.04 - vim 8.2.4919 - sudo 1.9.9
###
### Running this exploit on a vulnerable system allows a localiattacker to gain 
### a root shell on the machine.
###
### The exploit checks if the current user has privileges to run sudoedit or 
### sudo -e on a file as root. If so it will open the sudoers file for the
### attacker to add a line to gain privileges on all the files and get a root 
### shell.
文件快照

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