Skip to content

Commit 848227e

Browse files
committed
401 should be a valid url
1 parent 5d96f54 commit 848227e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/sap/sap_icm_urlscan.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def check_url(url)
109109
print_status("#{full_url} - restricted (#{res.code})")
110110
when 401
111111
print_status("#{full_url} - requires authentication (#{res.code}): #{res.headers['WWW-Authenticate']}")
112+
@valid_urls << full_url << "\n"
112113
# Attempt verb tampering bypass
113114
bypass_auth(url)
114115
when 404
@@ -153,7 +154,6 @@ def bypass_auth(url)
153154

154155
if (res && res.code == 200)
155156
print_good("#{full_url} Got authentication bypass via HTTP verb tampering")
156-
@valid_urls << full_url << "\n"
157157
else
158158
vprint_status("#{rhost}:#{rport} Could not get authentication bypass via HTTP verb tampering")
159159
end

0 commit comments

Comments
 (0)