Arbitrary External Redirect Through SAML RelayState After Successful Authentication
The SAML RelayState parameter was not validated, so an attacker could supply a value that influenced the post-login redirect URL. This could send users to a malicious site right after authentication, making phishing more convincing.
- Accepted in 5 days
- Fixed in 39 days
- Disclosed after 40 days
Summary by 2yuk
While testing the application's SAML authentication flow, I discovered that the RelayState parameter was not properly validated. By supplying an attacker-controlled value, it was possible to influence the URL users were redirected to after a successful login.
Although the issue did not compromise authentication itself, it could have been abused to redirect users to a malicious website immediately after authentication, increasing the effectiveness of phishing and other social engineering attacks.
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
Likely the application used the RelayState value as a redirect target without validating that it pointed to an allowed destination.
Impact
An attacker could redirect users to a malicious website immediately after authentication, which could increase the effectiveness of phishing and social engineering attacks.
What the attacker needed
Victim clicks a crafted login link
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 through a service like SAML, the site often remembers where you wanted to go using a value called RelayState. This report says that value was trusted without checking it, so someone could make the site send you to their own fake page after you log in. That makes a phishing link look more believable because you really did just log in.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.