How do I found Blind SSRF on a Hackerone Program
A Keycloak authentication endpoint accepted a request_uri parameter pointing at an external URL and made a server-side request to it, which the author confirmed through out-of-band DNS and HTTP callbacks. An attacker could use this to make the server reach internal or external resources it should not contact.
codingninjablogs.tech
Published on codingninjablogs.tech
This Vulnerability-Exploit is also present in Exploit-DB. This is present in Keycloak 12.0.1.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Keycloak authentication endpoint did not validate or restrict the request_uri parameter, so it fetched an arbitrary external URL server-side.
Impact
The server could be made to send requests to attacker-chosen destinations, which may allow probing of internal services, though the text only demonstrates out-of-band callbacks.
What the attacker needed
Reachable Keycloak authentication endpoint; out-of-band listener such as Burp Collaborator
The fix
The request_uri parameter should be validated against an allowlist or the affected Keycloak version should be upgraded to one where this is addressed.
How it was found
- Find a Keycloak host through subdomain enumeration.
- Send the authentication request with a request_uri pointing at a collaborator URL.
- Poll the collaborator client and observe DNS and HTTP interactions.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A server-side request forgery (SSRF) bug lets an attacker make a server fetch a web address of the attacker's choosing. Here the login page of an identity system took a link parameter and quietly fetched it from the server, so the author pointed it at a logging service they controlled and saw the server connect back. That proves the server can be steered to make requests, which can be abused to reach things the attacker cannot reach directly.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.