Find & Prevent Host Header Injection with These Resources

Shezan loves technology who is currently studying Computer Science and Engineering. He codes frontend & backend of a website. He also does penetration testing on web apps.
A wrong move with the HTTP header can risk your web app and your users' security. To prevent this from happening, measures should be taken before that. Better safe than sorry.
What to Learn from These Resources:
- What is "Host Header Injection" (also known as "HBI")?
- Why does this happen?
- Where can this bug be found?
- How to test for this bug?
- All ways to find this bug
- Can it come from another vulnerability?
- Can it be chained with other bugs?
- Can it lead to another vulnerability?
- What is the impact of this?
- Why is this a problem on a specific platform?
- What exactly will you be able to do on that platform by exploiting these?
- How to mitigate this bug?
- Some real-life cases with this bug
Resources:
- https://portswigger.net/web-security/host-header
- https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/17-Testing_for_Host_Header_Injection
- https://crashtest-security.com/invalid-host-header/
- https://www.acunetix.com/vulnerabilities/web/host-header-attack/
- https://www.acunetix.com/blog/articles/automated-detection-of-host-header-attacks/
- https://www.secuneus.com/host-header-injection/
- https://www.valencynetworks.com/kb/host-header-attack.html
- https://dzone.com/articles/what-is-a-host-header-attack
- https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
- https://attacker-codeninja.github.io/2021-09-09-portswigger-notes-on-host-header-attack/
- https://www.linkedin.com/pulse/host-header-injection-depth-utkarsh-tiwari/
- https://medium.com/@tameemkhalid786/host-header-injection-on-password-reset-functionality-an-easy-p2-5c6263c2e3d4
- https://bmacharia.com/2021/03/04/account-takeover-through-host-header-injection/
- https://hackerone.com/reports/317476
- https://bmacharia.com/2021/03/04/account-takeover-through-host-header-injection/
- https://lightningsecurity.io/blog/host-header-injection/
- https://blog.bentkowski.info/2015/04/xss-via-host-header-cse.html
- https://kathan19.gitbook.io/howtohunt/host-header-attack/host-header
- https://getridbug.com/information-security/is-host-header-injection-possible-without-cache-or-password-reset/
- https://infinitelogins.com/2021/01/02/http-host-header-attacks-and-portswigger-academy-lab-examples/
- https://lavankumar2604.wixsite.com/hacker/post/host-header-injection-made-me-earn-250
- https://stackoverflow.com/questions/47880156/host-header-injection
- https://www.exploit-db.com/exploits/38068
- https://vladtoie.gitbook.io/secure-coding/server-side/host-header-injection
- https://github.com/daffainfo/AllAboutBugBounty/blob/master/Host%20Header%20Injection.md
- https://web.dev/security-headers/
- https://stackoverflow.com/questions/43941048/prevent-host-header-attack
- https://www.ibm.com/docs/en/odm/8.9.2?topic=configuring-protecting-from-host-header-injection
- https://developpaper.com/http-host-header-attacks-for-web-security/
- https://techcommunity.microsoft.com/t5/iis-support-blog/host-header-vulnerability/ba-p/1031958
- https://nileshsapariya.blogspot.com/2015/10/host-header-injection-at.html
Let us know if you have more in our comment section. 🙂






