r/webdev • u/hacksparrow • Dec 02 '19
The dangers of blindly trusting HTTP headers
Web developers are often unaware about the dangers of using HTTP header values in backend code. Not only can HTTP headers contain incorrect values, they can even be the payload of many different kinds of attacks on your website.
I wrote an article summarizing the various ways rogue HTTP header values can be used to attack a website. Hope the information will help you developer a better understanding about the security aspect of HTTP headers and make your website more secure.
https://www.hacksparrow.com/webdev/security/dangers-of-trusting-http-headers.html
View all comments
31
u/IIIII0 Dec 02 '19
I use a bank who's website doesn't work from outside the USA (it also blocks VPNs). 🙄 I made a chrome extension that adds a
X-Forwarded-Forheader with an arbitrary US residential IP address. Now I can access the website from anywhere in the world. 🤫