How I Detected Open Redirect On A Whatsapp Message
A web application accepted a redirect parameter and sent users to an arbitrary external site, which the author confirmed by pasting the crafted link into WhatsApp and seeing the destination site's Open Graph preview load. An attacker could use this to send victims to a malicious page, in this case one hosting an XSS proof of concept.
Published on infosecwriteups.com
Hello world, Today I share how I detected a $$$$ Open Redirect Bug from a simple WhatsApp message. This can be detected on other platforms like Twitter, Facebook etc.
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 application took a user-supplied redirect target from the URL and forwarded the browser to it without checking that the destination belonged to the trusted site.
Impact
A victim clicking the trusted-looking link could be sent to an attacker-controlled page, which in this case hosted an XSS proof of concept; the author notes that a Content Security Policy can sometimes block the redirect.
What the attacker needed
Victim clicks a crafted link; redirect parameter accepts a URL
The fix
The redirect target should be validated against an allowlist of trusted destinations, or replaced with an internal reference, rather than accepting an arbitrary URL.
How it was found
- Paste the candidate link into a WhatsApp chat box without sending it.
- Watch which site's title, description and thumbnail appear in the preview.
- If the preview shows a different site than the one in the link, open the link to confirm the redirect.
- Observe the browser landing on the external page.
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 when a website takes a link parameter and sends you to whatever address is in it, even a site the owners do not control. Attackers like this because the link starts with a trusted domain, so victims are more likely to click it. Here the author spotted it because chat apps show a preview of the destination page, revealing where the link really goes.
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.