1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-06 06:29:03 +00:00

Corrects a default HTTP redirect rule:

A redirect should not be carried out if credentials are embedded in the URL.
Fixes #826
This commit is contained in:
nnposter
2017-04-19 18:30:13 +00:00
parent 256378df5c
commit 17c37b7e8d

View File

@@ -1479,7 +1479,7 @@ local redirect_ok_rules = {
-- Check if there's any credentials in the url
function (url, host, port)
-- bail if userinfo is present
return ( url.userinfo and false ) or true
return not url.userinfo
end,
-- Check if the location is within the domain or host