Skip to content

Commit 205b175

Browse files
committed
Update host_header_injection.rb
1 parent 6b3da7f commit 205b175

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/auxiliary/scanner/http/host_header_injection.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ def run_host(target_host)
5454
if res.headers =~ /#{p}/ || res.body =~ /#{p}/
5555
print_good("#{peer} is vulnerable to HTTP Host-Header Injection")
5656
report_vuln(
57-
:host: rhost,
58-
:port: rport,
59-
:proto: 'tcp',
60-
:sname: (ssl ? 'https' : 'http'),
61-
:info: "Vulnerable to HTTP Host-Header Injection",
57+
host: rhost,
58+
port: rport,
59+
proto: 'tcp',
60+
sname: (ssl ? 'https' : 'http'),
61+
info: "Vulnerable to HTTP Host-Header Injection",
6262
)
6363
else
6464
vprint_error("#{peer} returned #{res.code} #{res.message}")

0 commit comments

Comments
 (0)