
A demo exploit for CVE-2021-44026, a SQL injection in Roundcube
This repository contains a demo exploit for an SQL injection in Roundcube.
Disclaimer:
This code is intended solely for educational purposes and to assist security teams in identifying vulnerabilities in their Roundcube instances. It should only be used in ethical hacking engagements in which the security professional has written authorization to ethically exploit the target(s) included in the scope. The authors are not liable for any misuse or illegal use of this exploit code.
usage: exploit.py [-h] smtp_server smtp_port sender_email sender_password target_email c2_server
Roundcube CVE-2020-35730 & CVE-2021-44026 exploit
positional arguments:
smtp_server Sender SMTP server name
smtp_port Sender SMTP server port
sender_email Sender email address
sender_password Sender email password for logging into the SMTP server
target_email Target email address
c2_server The URL on which the C2 server will listen
optional arguments:
-h, --help show this help message and exit
When ran, the code starts a Flask server, c2_server in the code, which does the exploit in two steps:
static/fetcher.jsNote: You can use a Gmail account as the sender's email. Use stmp.gmail.com for the server and 587 for the port. Configure a password just for this usage by following the guide here.