Close Menu
    What's Hot

    Ultimate Guide to Attack Surface Scanning

    April 10, 2025

    Recent Trends in Zero Trust Architecture

    March 3, 2025

    Modern Defensive Cybersecurity Services

    December 29, 2024
    Facebook X (Twitter) Instagram LinkedIn WhatsApp
    HITH Blog – HackerinthehouseHITH Blog – Hackerinthehouse
    • Bug Bounty

      A Beginner’s guide to Active Directory Penetration Testing

      June 21, 2023

      Building an XSS Scanner with Python

      February 27, 2023

      Journey to Website Security: Uncovering Hyperlink Injection Dangers

      February 24, 2023

      File Upload XSS | Find XSS in a different way while doing Bug bounty and Pentesting

      January 13, 2023

      How To Find DOM-based XSS Vulnerability

      December 27, 2022
    • Pen Testing

      Privileged Escalation: How Hackers Exploit Permissions to Compromise Your Systems

      March 5, 2024

      The Ultimate Guide to Vulnerability Scanning

      December 13, 2023

      Top 10 Tools for Real World Red Teaming

      November 18, 2023

      Locking Down OAuth 2.0: Critical Steps to Protect User Accounts and Data

      November 10, 2023

      Detailed guide on Password Transmutations

      April 29, 2023
    • Cyber Security

      Ultimate Guide to Attack Surface Scanning

      April 10, 2025

      Recent Trends in Zero Trust Architecture

      March 3, 2025

      Modern Defensive Cybersecurity Services

      December 29, 2024

      A Comprehensive Guide on Cyber Security Services VS Cyber Security Products

      June 14, 2024

      A Comprehensive Guide to Security Compliance

      May 6, 2024
    • Services
    • Product
      • Certifications
    • More
      1. Ethical Hacking
      2. Kali Linux
      3. Write Ups
      4. CTF
      5. Blockchain
      6. Machine Learning
      7. Computer Science
      8. View All

      Journey to Website Security: Uncovering Hyperlink Injection Dangers

      February 24, 2023

      Pentest/VAPT RoE and Best Practices

      February 3, 2023

      Emoji Deploy Attack Chain

      January 24, 2023

      Introduction to Information Security

      January 11, 2023

      Cyber Security Roadmap (Part-2)

      October 25, 2022

      How to install waybacksurls in kali linux (2022)

      September 23, 2022

      How To Find Hidden Parameters

      November 12, 2022

      Top 10 Subdomain Takeover Reports

      November 6, 2022

      Pause DeSync Attack :

      November 3, 2022

      Bypassing OTP Verification Methods

      October 31, 2022

      Tryhackme Vulnversity walkthrough

      September 26, 2022

      Ultimate Guide to Attack Surface Scanning

      April 10, 2025

      Recent Trends in Zero Trust Architecture

      March 3, 2025

      Modern Defensive Cybersecurity Services

      December 29, 2024

      Robotic Process Automation: The Key to Effortless Efficiency

      September 18, 2024

      A Peek into Facial Recognition Technology

      August 21, 2023

      How Data Scientists and Machine Learning Engineers Differs

      November 8, 2022

      Artificial Neural Networks with ML

      November 4, 2022

      INTRODUCTION TO MACHINE LEARNING

      October 20, 2022

      Robotic Process Automation: The Key to Effortless Efficiency

      September 18, 2024

      BCI: Merging Minds With Machines

      August 18, 2023

      Is Quantum Computing the future of Computing?

      August 16, 2023

      Ultimate Guide to Attack Surface Scanning

      April 10, 2025

      Recent Trends in Zero Trust Architecture

      March 3, 2025

      Modern Defensive Cybersecurity Services

      December 29, 2024

      Robotic Process Automation: The Key to Effortless Efficiency

      September 18, 2024
    HITH Blog – HackerinthehouseHITH Blog – Hackerinthehouse
    Home»Bug Bounty»Host Header attack explained
    Bug Bounty

    Host Header attack explained

    By KRiPPto99December 19, 2022Updated:December 20, 2022No Comments2 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email

    What is an HTTP Host header

    The HTTP host header is an request header that specifies the domain which a client wants to access. so here header is necessary because it is standard for servers to host website and applications at the same of IP address, When a server receives a request, it Checks the the host header parameter to determine which domain needs to process the request and then dispatches it.

     

    What Is An HTTP Host Header Attack

    when a web application cant validate the value in the host header then a attacker can easily try to manipulate the values and try to use this to inject harmful payloads into the web application this vulnerability could lead to many other vulnerabilities like

    • SQL injections
    • web cache poisoning
    • SSRF

     

    How to perform attack

    Suppose there is an web application Intercept with Burpsuit and change the host  If attack is possible there is Host header attack

    Suppose If want to bypass this host header injection ?

    GET /artists.php HTTP/1.1
    Host: www.testphp.vulnweb.com
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64)
    X-Forwarded-Host : www.testphp.vulnweb.com

    Change host evil.com If it works then there is a vulnerability 

    GET /artists.php HTTP/1.1
    Host: evil.com
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64)
    X-Forwarded-Host : www.testphp.vulnweb.com

     

    You can even try to manipulate by changing X-Forwarded-Host : to www.bing.com like this below there are some examples are there to understand more deeper

    1 ) Host : bing.com
    X-Forwarded-Host : www.bing.com

    2 ) Host : www.bing.com
    X-Forwarded-Host : evil.com

    3 ) HOST : www.evil.com@www.bing.com

    4 ) Refferer : https://www.bing.com/

    5 ) Origin : https://www.bing.com/

    6 ) You can change the Post method ..

     

    TOP Host header Injection reports

    https://hackerone.com/reports/698416

    https://hackerone.com/reports/13286

    https://hackerone.com/reports/158019

    Author

    • KRiPPto99

      View all posts

    bug bounty bugbounty bugbountytips Cyber-Security how to start bugbounty http host header injection httphostheaderinjection
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleWhat are Web3 domains? Steps to own a web3 domain
    Next Article Network Security Explained
    KRiPPto99

    Related Posts

    Cyber Security

    A Comprehensive Guide to Security Compliance

    May 6, 2024
    Cyber Security

    A Comprehensive Guide to APT

    March 10, 2024
    Pen Testing

    The Ultimate Guide to Vulnerability Scanning

    December 13, 2023
    Add A Comment
    Leave A Reply Cancel Reply

    Advertisement
    Top Posts

    How to install waybacksurls in kali linux (2022)

    September 23, 20222,573 Views

    File Upload XSS | Find XSS in a different way while doing Bug bounty and Pentesting

    January 13, 2023894 Views

    OSCP Cheat Sheet

    October 16, 2022815 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Latest Reviews

    Subscribe to Updates

    Get the latest tech news from FooBar about tech, design and biz.

    Advertisement
    X (Twitter) Instagram LinkedIn WhatsApp Telegram
    • About us
    • Contact Us
    • Privacy Policy
    • Terms
    © 2025 HITH Blog. Powered by Hackerinthehouse.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.