A C++ security scanner tool to detect Cross-Site Scripting (XSS) vulnerabilities in Roundcube Webmail installations.
- Unauthorized access to user accounts
- Session hijacking
- Data exposure
- Unauthorized actions on behalf of users
The scanner checks for the following vulnerable versions:
1.5.x Series:
- 1.5.0 through 1.5.11
1.6.x Series:
- 1.6.0 through 1.6.11
Upgrade to:
- Roundcube Webmail 1.5.12 or later (for 1.5.x)
- Roundcube Webmail 1.6.12 or later (for 1.6.x)
- Automated version detection from Roundcube Webmail instances
- Support for single URL scanning
- Batch scanning from file input
- Color-coded terminal output
- SSL/TLS support for HTTPS connections
- C++17 compatible compiler (g++ or clang++)
- OpenSSL 3.x (for SSL/TLS support)
- Make (for building)
# Install OpenSSL via Homebrew
brew install openssl@3# Ubuntu/Debian
sudo apt-get install libssl-dev g++ make
# Fedora/RHEL
sudo dnf install openssl-devel gcc-c++ make- Clone or download this repository
- Navigate to the project directory
- Build the project:
makeOr rebuild from scratch:
make rebuildmake cleanRun the compiled binary:
./cve-2025-68461The tool provides two scanning modes:
-
Single URL - Scan a single Roundcube Webmail instance
- Enter option
1 - Provide the target URL (e.g.,
https://mail.example.com)
- Enter option
-
File Input - Batch scan multiple URLs from a file
- Enter option
2 - Provide the path to a file containing URLs (one per line)
- Enter option
$ ./cve-2025-68461
[*] Scanning Options:
1. URL
2. File
Enter: 1
Enter URL:
https://mail.example.com
[+] VULNERABLE: https://mail.example.com Version: 1.5.10Create a text file (e.g., urls) with one URL per line:
https://mail.example.com
https://webmail.company.com
http://mail.test.local
- Language: C++17
- HTTP Library: cpp-httplib (included)
- JSON Library: nlohmann/json (included)
- SSL/TLS: OpenSSL 3.x
The scanner:
- Connects to the target Roundcube Webmail instance
- Extracts version information from
rcmail.set_envJavaScript configuration - Compares the detected version against known vulnerable versions
- Reports vulnerable instances
This tool is for authorized security testing and educational purposes only. Only use this scanner on systems you own or have explicit permission to test. Unauthorized scanning of systems may be illegal and unethical.
c0d3Ninja
- Website: https://gotr00t0day.github.io
- Instagram: @gotr00t0day
- X (Twitter): @gotr00t0day
This project is provided as-is for security research and educational purposes.
- CVE-2025-68461: Cross-Site Scripting vulnerability in Roundcube Webmail
- Roundcube Webmail