Skip to content

Commit d91b412

Browse files
RuslaideeminRuslaideemin
authored andcommitted
adobe_flash_sps.rb - resource_uri vs get_resource
resource_uri will randomize the returned uri unless datastore['URIPATH"] is set. get_resource will return the currently used reosurce_uri Since the incorrect type is used, this exploit is completely broken. Tested fix with both URIPATH set to / and unset, and it works after redirect.
1 parent 69c2501 commit d91b412

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/windows/browser/adobe_flash_sps.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ def on_request_uri(cli, request)
108108
end
109109

110110
# Redirect to a trailing slash so relative paths work properly
111-
if resource_uri != "/" and not request.uri.index("#{resource_uri}/")
112-
uri = resource_uri + "/"
111+
if get_resource != "/" and not request.uri.index("#{get_resource}/")
112+
uri = get_resource + "/"
113113
send_redirect(cli, uri)
114114
return
115115
end

0 commit comments

Comments
 (0)