Stealing user passwords through a VPN’s SSO
The SSL VPN device replaced username and password placeholders in HTTP response headers, not just requests. An attacker who knew of an open redirect on any internal application could craft a link that, when clicked by an authenticated user, caused the VPN to insert the user's credentials into the redirect Location header, sending them to an attacker-controlled site.
Published on blog.scrt.ch
Last year I got this idea that I should attempt to pay for my holidays to Japan by hunting for bounties in security appliances while in the plane. A full 10 hours of uninterrupted focus on one solution seemed like it should yield interesting results.
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
Impact
An attacker could steal a user's VPN username and password, but only if an insecure redirect exists on an internal application and the user clicks a crafted link.
What the attacker needed
An insecure redirect on an internal app; victim is authenticated to the VPN; victim clicks a crafted link
How it was found
- Identify an insecure redirect on any application accessed through the VPN.
- Craft a URL that includes the redirect and the username/password placeholders in the redirect target.
- Convince an authenticated user to visit the crafted URL.
- The VPN replaces the placeholders in the redirect response's Location header with the user's credentials.
- The user's browser follows the redirect to the attacker's site, leaking the credentials.
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 VPN lets you log in once and then access internal apps without logging in again. The VPN fills in your username and password into a template when it talks to those apps. The bug was that it also filled them into the app's reply headers, so a malicious link could trick the VPN into putting your password into a redirect that sent it to an attacker.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.