Skip to content

Commit 33825d0

Browse files
authored
Update redoc_exposed.rb
1 parent 941f3f3 commit 33825d0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/auxiliary/scanner/http/redoc_exposed.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ def initialize(info = {})
2020
'Author' => [
2121
'Hamza Sahin (@hamzasahin61)'
2222
],
23-
'License' => MSF_LICENSE
23+
'License' => MSF_LICENSE,
24+
'Notes' => {
25+
'Stability' => [CRASH_SAFE], # GET requests only; should not crash or disrupt the target service
26+
'Reliability' => [], # Does not establish sessions; leaving this empty is acceptable
27+
'SideEffects' => [] # Add IOC_IN_LOGS if server logs may record these requests
28+
}
2429
)
2530
)
2631

@@ -51,7 +56,7 @@ def redoc_like?(res)
5156

5257
# Fallback to body/title heuristics
5358
title = res.get_html_title.to_s
54-
body = res.body.to_s
59+
body = res.body.to_s
5560

5661
return true if title =~ /redoc/i
5762
return true if body =~ /<redoc-?/i

0 commit comments

Comments
 (0)