关联漏洞
Description
Privilege Escalation using Passwd - April Fools prank
介绍
# CVE-2025-0401 - Local Privilege Escalation via SUID Binary Abuse
## Summary
CVE-2025-0401 is a local privilege escalation vulnerability discovered in systems where the `/usr/bin/passwd` binary is misconfigured, allowing unintended root-level access when combined with specific syscall sequences. This exploit demonstrates how attackers can leverage SUID misconfigurations to simulate root shell access.
> ⚠️ This PoC is intended for educational and authorized testing environments only.
---
## Exploit Details
The vulnerability is triggered through direct syscalls involving:
- `setuid(0)`
- `setgid(0)`
- Execution of `/bin/sh`
### Syscalls used:
- `write` (1)
- `setuid` (105)
- `setgid` (106)
- `execve` (59)
- `exit` (60)
---
## Usage
```bash
git clone https://github.com/CyberSecurityUP/CVE-2025-0401.git
cd CVE-2025-0401
gcc -z execstack -fno-stack-protector exploit.c -o exploit
chmod +x exploit
./exploit
```
"Not everything said with a smile is true... especially on April 1st."
文件快照
[4.0K] /data/pocs/1418737338e9310fc94b0863e3ad0239ebae4dc4
├── [ 16K] exploit
├── [2.1K] exploit.c
├── [1.2K] prank.asm
├── [1005] README.md
└── [1.4K] shellcode
0 directories, 5 files
备注
1. 建议优先通过来源进行访问。
2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →