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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-0401 PoC — reggie 路径遍历漏洞

Source
Associated Vulnerability
Title:reggie 路径遍历漏洞 (CVE-2025-0401)
Description:reggie是1902756969个人开发者的一个外卖网站。 reggie 1.0版本存在路径遍历漏洞,该漏洞源于参数name存在路径遍历。
Description
Privilege Escalation using Passwd - April Fools prank
Readme
# 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."
File Snapshot

[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
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.