6 ms·
Presumably just throwing a 403 if they have this referrer is ok and won't have a weird SEO impact or something?
by HughParry 2y ago
Presumably just throwing a 403 if they have this referrer is ok and won't have a weird SEO impact or something?
- thiago_fm 2y agoNo, and the earlier you do the better. Later it might have
- jsheard 2y agoCouldn't the attacker evade that by sending Referrer-Policy: no-referrer with their redirect?
- HughParry 2y agoGood shout. Can always block based on origin header though (when under the assumption that it's a legit browser) since it's a forbidden header name. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Or...
- RajBhai 2y agoSounds like a security flaw that browsers honor this.
- kbolino 2y agoReferer is not a security mechanism.
- RajBhai 2y agoI didn't say it was. Browsers display an alert when full-screen mode is activated. Full-screen mode isn't a security feature, but the browser does something the website developer can't control so that users can conclude that something fishy isn't going on. I think the ability for one website to hide that they've redirected to another is a vulnerability.
- kbolino 2y agoI'm inclined to agree that websites should know when they're the target of a redirect but that has nothing to do with Referer! That header does not work the way so many seem to think it does. As I've laid out elsewhere in this thread, HTTP redirects do not show up in Referer under any circumstances. Right now, one site doesn't have to do anything to "hide" that it's part of a redirect chain, since there's no tracking of that chain to begin with.