rapid7/metasploit-framework — pull request #1954 by Ruslaideemin (2013-06-14 01:06:42+00:00)
Title: 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 resource_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.

From debugging this issue:

[*] adobe_flash_sps - on_request_uri, request.uri = /HWshQGYxY
, resource_uri = /LiepLh
[*] adobe_flash_sps - on_request_uri, request.uri = /HWshQGYxY
, resource_uri = /M5gB1pfRGKVjIk
[*] adobe_flash_sps - on_request_uri, request.uri = /HWshQGYxY
, resource_uri = /h4CxozFHkLrf2