Nuclei Template for Adminer SSRF Issue (CVE-2021-21311) (#4019)

* Updated CVE-2022-22963

* Added CVE-2021-21311 Template

* Added Shodan Query

* Updated Title

* misc update

Co-authored-by: sandeep <sandeep@projectdiscovery.io>
patch-1
Adam Crosser 2022-03-31 14:40:06 -05:00 committed by GitHub
parent 5447892779
commit 235ba94b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 8 deletions

View File

@ -0,0 +1,29 @@
id: CVE-2021-21311
info:
name: Adminer SSRF Using Verbose Error Messages
author: Adam Crosser
severity: high
description: Adminer is an open-source database management in a single PHP file. In adminer from version 4.0.0 and before 4.7.9 there is a server-side request forgery vulnerability. Users of Adminer versions bundling all drivers (e.g. `adminer.php`) are affected. This is fixed in version 4.7.9.
reference:
- https://github.com/vrana/adminer/security/advisories/GHSA-x5r2-hj5c-8jx6
- https://github.com/vrana/adminer/files/5957311/Adminer.SSRF.pdf
metadata:
shodan-query: title:"Login - Adminer"
tags: cve,cve2021,adminer,ssrf
requests:
- method: GET
path:
- "{{BaseURL}}/adminer?elastic=example.com&username="
matchers-condition: and
matchers:
- type: status
status:
- 403
- type: word
part: body
words:
- "&lt;title&gt;400 - Bad Request&lt;/title&gt;"

View File

@ -7,24 +7,21 @@ info:
severity: info
reference:
- https://blog.sorcery.ie/posts/adminer/
tags: panel,adminer,login
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
cvss-score: 0.0
cve-id:
cwe-id: CWE-200
# <= 4.2.4 can have unauthenticated RCE via SQLite driver
# <= 4.6.2 can have LFI via MySQL LOAD DATA LOCAL
# Most versions have some kind of SSRF usability
# Is generally handy if you find SQL creds
metadata:
shodan-query: title:"Login - Adminer"
tags: panel,adminer
requests:
- method: GET
path:
- '{{BaseURL}}/adminer.php'
- '{{BaseURL}}/_adminer.php'
- '{{BaseURL}}/adminer/'
- '{{BaseURL}}/adminer.php'
- '{{BaseURL}}/editor.php'
- '{{BaseURL}}/mysql.php'
- '{{BaseURL}}/sql.php'
@ -36,7 +33,6 @@ requests:
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
words:
- "Login - Adminer"