id: host-header-injection info: name: Host Header Injection author: princechaddha severity: info description: HTTP header injection is a general class of web application security vulnerability which occurs when Hypertext Transfer Protocol headers are dynamically generated based on user input. reference: - https://portswigger.net/web-security/host-header - https://portswigger.net/web-security/host-header/exploiting - https://www.acunetix.com/blog/articles/automated-detection-of-host-header-attacks/ metadata: max-request: 1 tags: hostheader-injection,generic http: - method: GET path: - "{{BaseURL}}" headers: Host: "{{randstr}}.tld" matchers-condition: and matchers: - type: word words: - '{{randstr}}.tld' part: body condition: and - type: status status: - 200 # digest: 4a0a00473045022100de7ae93d70b1412d8a5a45afab68b57c023ea75f7c202d38f888d857e179640702200ccb5a4307c3300b6e657eb8f62bd00174efcc9f90f2fcff5f7f98daa7cddcd8:922c64590222798bb761d5b6d8e72950