instipod DuoUniversalKeycloakAuthenticator challenge information disclosure vulnerability
The DuoUniversalKeycloakAuthenticator plugin used a 307 redirect to send users to Duo, which caused the browser to resend the original login POST request, including the username and password, to duosecurity.com. An attacker who controls or observes that endpoint could obtain the user's Keycloak credentials.
Originally disclosed on Cisco Talos
An information disclosure vulnerability exists in the challenge functionality of instipod DuoUniversalKeycloakAuthenticator 1.0.7 plugin. A specially crafted HTTP request can lead to a disclosure of sensitive information.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The plugin used a 307 temporary redirect, which preserves the request method and body, so the original login POST containing credentials was forwarded to the external Duo endpoint.
Impact
Every user authenticating through the plugin could have their Keycloak username and password exposed to Duo, though the report does not claim that Duo actually misused the data.
What the attacker needed
Keycloak with the vulnerable plugin; victim logs in and performs MFA
The fix
The issue was fixed in version 1.0.8, likely by using a redirect that does not resend the request body.
How it was found
- A user logs into Keycloak using the DuoUniversalKeycloakAuthenticator plugin.
- The plugin detects successful initial authentication and builds a Duo authentication URL.
- The plugin responds with a 307 temporary redirect to the Duo URL.
- The browser follows the redirect and resends the original POST request, including the username and password, to duosecurity.com.
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 report has not been written yet. The Original tab links to the source.
When you log in to a website, your browser sends your username and password in a request. If the website then tells the browser to go to another site using a special redirect code (307), the browser repeats the same request, including your password, to that other site. Here, the plugin used that redirect code, so your password was sent to Duo even though it should not have been.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.