Skip to content

Commit d34579f

Browse files
author
Brent Cook
committed
Land rapid7#7203, Fix struts_default_action_mapper payload request delay
2 parents 1e7663c + 1733d3e commit d34579f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/exploits/multi/http/struts_default_action_mapper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ def initialize(info = {})
2626
"redirectAction:" is not properly sanitized. Since said information will be
2727
evaluated as OGNL expression against the value stack, this introduces the
2828
possibility to inject server side code.
29-
30-
This module has been tested successfully on Struts 2.3.15 and Struts 2.0.11.2 over
31-
Tomcat 7, with Windows 2003 SP2 and Ubuntu 10.04 operating systems.
3229
},
3330
'License' => MSF_LICENSE,
3431
'Author' =>
@@ -74,6 +71,7 @@ def initialize(info = {})
7471
Opt::RPORT(8080),
7572
OptString.new('TARGETURI', [true, 'Action URI', '/struts2-blank/example/HelloWorld.action']),
7673
OptInt.new('HTTP_DELAY', [true, 'Time that the HTTP Server will wait for the payload request', 60]),
74+
OptInt.new('PAYLOAD_REQUEST_DELAY', [true, 'Time to wait for the payload request', 5]),
7775
# It isn't OptPath becuase it's a *remote* path
7876
OptString.new("WritableDir", [ true, "A directory where we can write files (only on Linux targets)", "/tmp" ])
7977
], self.class)
@@ -359,6 +357,8 @@ def wait_payload
359357
fail_with(Failure::Unknown, "#{rhost}:#{rport} - Target didn't request request the ELF payload -- Maybe it cant connect back to us?")
360358
end
361359
end
360+
361+
sleep(datastore['PAYLOAD_REQUEST_DELAY'])
362362
end
363363

364364
def build_hta

0 commit comments

Comments
 (0)