Join our Newsletter — 33% off our NHI Course

URL parsing confusion in Apache Druid proxy endpoints: what teams need to know

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 19262
Topic starter  

TL;DR: Knowledge of older SSRF patterns helped surface CVE-2025-27888 in Apache Druid’s management proxy, where URL parsing confusion enabled server-side request forgery before versions 31.0.2 and 32.0.1, according to Xbow. The finding reinforces that proxy-style attack surfaces need stricter input handling, internal request controls, and rapid patching, especially where management functions can reach internal resources.

Editorial analysis by NHI Mgmt Group, based on content published by Xbow: “CVE-2025-27888: Server-Side Request Forgery via URL Parsing Confusion in Apache Druid Proxy Endpoint”.

Key questions

Q: What breaks when URL parsing differs between a proxy and its backend?

A: A proxy can validate one destination while the backend resolves another, which can turn a seemingly safe request into SSRF.

Q: Why are management proxies especially risky when SSRF is possible?

A: They often sit close to internal services and may be allowed to reach resources that external users cannot.

Q: What are the signs that URL parsing logic is failing safely?

A: Watch for inconsistent handling of encoded characters, redirects, mixed absolute and relative URLs, and destinations that pass validation but resolve differently at runtime.

Practitioner guidance

  • Harden URL canonicalisation in proxy code Ensure every proxy decision uses one canonical URL interpretation before any outbound request is made, and reject ambiguous encodings, mixed host forms, and parser edge cases.
  • Restrict management-plane egress destinations Allow the proxy to contact only explicitly approved internal services, and block all other outbound destinations at the network and application layers.
  • Test adjacent endpoint families for shared parsing flaws Re-check other proxy, query, and extension endpoints that handle URLs or backend routing, because one SSRF issue often exposes a broader pattern.

Bottom line: URL parsing confusion can convert an ordinary proxy into an SSRF conduit when validation and execution interpret the same destination differently.

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 19751
 

URL parsing confusion is a trust-boundary failure, not just a validation bug. When a proxy and its backend components disagree about what a URL means, security controls can approve one interpretation while execution follows another. That mismatch is especially dangerous in management planes because they often sit close to internal resources. Practitioners should treat parsing consistency as part of access control, not only input hygiene.

A few things that frame the scale:

  • Internal repositories are 6x more likely to contain secrets than public ones (32.2% vs 5.6%), contradicting the assumption that private repos are safe, according to the State of Secrets Sprawl 2026.

A question worth separating out:

Q: How should security teams reduce SSRF risk in management proxies?

A: Start by restricting where the proxy can send requests, then validate that every URL is canonicalised before use. Add deny rules for internal ranges, metadata endpoints, localhost, and alternate schemes. Finally, separate administrative proxy functions from user-facing traffic so untrusted input never reaches privileged internal fetch paths.

👉 Read our full editorial: Apache Druid proxy SSRF shows how URL parsing confusion breaks defenses



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.