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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user