XSS Vulnerability in Gill.is website
The Facebook login page accepted a 'next' parameter that could contain a javascript: URI, which would execute after the victim logged in. An attacker could send a crafted link to run arbitrary JavaScript in the victim's browser, potentially compromising their account.
Meta
Published on web.archive.org
Post
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 login page failed to validate or restrict the 'next' parameter to safe URLs, allowing a javascript: URI to be used as a redirect target.
Impact
An attacker could execute arbitrary JavaScript in a victim's browser after login, potentially compromising any Facebook account.
What the attacker needed
Victim clicks a crafted link; victim logs in
The fix
The issue was fixed by Facebook after being reported.
How it was found
- The attacker creates a link to the Facebook login page with a 'next' parameter containing a javascript: URI.
- The attacker sends this link to a victim.
- The victim logs in through the link.
- The site redirects to the javascript: URI, executing the script in the victim's browser.
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.
When you log in to a website, it sometimes sends you to another page afterwards. This site let the address of that next page be controlled by a link, and it did not check that the address was safe. An attacker could make the next page run harmful code in your browser, which could steal your account.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.