Skip to content
Open redirect Write-up Intermediate

Payloads in Plain Sight: How Open Redirect + JavaScript Led to F

An open redirect on a login page allowed a javascript: URL to execute after login, enabling session cookie theft and account takeover. The attacker could send a crafted link that, when clicked and followed by a normal login, would silently exfiltrate the victim's session cookie.

iski Follow

Published on infosecwriteups.com

Free Link🎈

Iski, on infosecwriteups.com

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 victim's session cookie after they log in, leading to full account takeover.

What the attacker needed

Victim clicks a crafted link; victim logs in normally

The fix

The redirect parameter should be validated to allow only safe URLs, blocking javascript: and other dangerous schemes.

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.

An open redirect is a flaw where a website lets you specify where to send users after they log in, without checking if the destination is safe. Here, the redirect parameter accepted a javascript: link, which runs code in the victim's browser. After the victim logged in, that code stole their session cookie, the token that keeps them logged in, letting the attacker take over their account.

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.

More by iski

View all

186 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.