Sploitus

Exploit for Path Traversal in Lakernote Easyadmin

githubexploit Β· 2025-07-04

Exploit Code

README65 lines
## https://sploitus.com/exploit?id=6FDFA475-E38C-58EF-BBAB-71599EF04B55
# CVE-2024-4040 β€” CrushFTP Authentication Bypass Exploit

This repository contains a stealthy Python proof-of-concept (PoC) exploit for **CVE-2024-4040**, a critical vulnerability in CrushFTP (v10 and below) that allows an attacker to bypass authentication using a forged `CrushAuth` cookie and AWS-style `Authorization` header.

## 🚨 Vulnerability Summary

> An unauthenticated attacker can bypass authentication in vulnerable CrushFTP instances by crafting a specific cookie/header combination, gaining unauthorized access to internal web functions.

- **CVE ID**: [CVE-2024-4040](https://nvd.nist.gov/vuln/detail/CVE-2024-4040)
- **Severity**: Critical (CVSS 9.8)
- **Affected**: CrushFTP v10.x (prior to official patch)

---

## βš™οΈ Features

- βœ… Python 3.x PoC
- βœ… Secure `CrushAuth` generation using `secrets`
- βœ… Valid AWS-style spoofed `Authorization` header
- βœ… Built-in SSL bypass with suppression
- βœ… No external dependencies (only `requests`)
- βœ… Clean console output with status and detection

---

## πŸ›  Usage

```bash
python3 CVE-2024-4040.py http://target-ip:8080 --valid_username crushadmin
```

`target_url` β€” Base URL of the CrushFTP server

`--valid_username` β€” Known valid user (default: crushadmin)

---

πŸ” Example Output
```
[*] CrushFTP Authentication Bypass Exploit
[*] Targeting: http://192.168.1.10:8080
[*] Using username: crushadmin

[+] Exploit Result:

Status_Code    : 200
Response_Text  : {"getUserNameResponse":{"user_name":"crushadmin"}}

[+] CrushFTP Server is VULNERABLE!
```

---

## ⚠️ Legal Notice

This code is for educational and authorized security testing purposes only.
Do not use against systems you do not own or have explicit permission to test.


---

## πŸ™ Credits

PoC Refactor: illdeed