Skip to content

Commit c953601

Browse files
committed
Fix: it needs at least 2 follows redirect
1 parent edb9fdc commit c953601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/http/wso2_api_manager_file_upload_rce.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def authenticate
182182
'vars_post' => auth_data
183183
}
184184

185-
res = send_request_cgi!(opts, 20, 1) # timeout and redirect_depth
185+
res = send_request_cgi!(opts, 20, 2) # timeout and redirect_depth
186186

187187
if res&.get_cookies && res.get_cookies.match(/:?WSO2_AM_TOKEN_1_Default=([\w|-]+);\s/)
188188
vprint_status('Got bearer token')

0 commit comments

Comments
 (0)