3 ms·
302 redirects preserve the URL's hash, which contains the access token in the JS SDK. Thus, if a site has URLs that can be constructed to make a 302 to an atta
by ceejayoz 13y ago
302 redirects preserve the URL's hash, which contains the access token in the JS SDK.
Thus, if a site has URLs that can be constructed to make a 302 to an attacking site, like https://www.google.com/redirect?url=http://www.example.com/ https://www.google.com/redirect?url=http://www.example.com/, it's possible to craft a redirect URL that would take you to the authentication dialog but return the token to a redirect URL which will in turn pass the token to the attacker.