Skip to content

Commit 32a190f

Browse files
committed
Fix undefined method error
[FixRM rapid7#8340]
1 parent 217d89f commit 32a190f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/http/dir_webdav_unicode_bypass.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def run_host(ip)
164164
'data' => webdav_req + "\r\n\r\n",
165165
}, 20)
166166

167-
if (res.code.to_i == 207)
167+
if (res and res.code.to_i == 207)
168168
print_status("\tFound vulnerable WebDAV Unicode bypass target #{wmap_base_url}#{tpath}%c0%af#{testfdir} #{res.code} (#{wmap_target_host})")
169169

170170
# Unable to use report_web_vuln as method is PROPFIND and is not part of allowed

0 commit comments

Comments
 (0)