Record summary

CVE-2021-29625 has a selected CVSS score of 7.5 (high); EIP currently links 1 Nuclei template.

Description

Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The 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`).

Description source: CVE List

Exploitation context

Available material

Nuclei templates
1

Affected products and versions

2
ProductSourceVersion rangeStatus
CVE List>= 4.7.8, < 4.8.1affected
GitHub Advisory4.7.8 to < 4.8.1 · Fixed in 4.8.1affected

Nuclei templates

1
ProjectDiscoveryMEDIUMAdminer <=4.8.0 - Cross-Site ScriptingCVSS 6.1

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).

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`).

WeaknessesCWE-79
Authorsdaffainfo
Template tagscve2021cveadminerxsssqlivuln
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CPE: cpe:2.3:a:adminer:adminer:*:*:*:*:*:*:*:*
Shodan: http.title:"login - adminer"
Shodan: cpe:"cpe:2.3:a:adminer:adminer"
FOFA: app="adminer" && body="4.7.8"
FOFA: title="login - adminer"
Google: intitle:"login - adminer"

Source: ProjectDiscovery

References

5