Document Title: =============== Matterdaddy Market v1.1 - SQL Injection Vulnerabilities References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=499 Release Date: ============= 2012-04-08 Vulnerability Laboratory ID (VL-ID): ==================================== 499 Product & Service Introduction: =============================== Matterdaddy Market is a application that allows you to run your own online marketplace or classifieds listing site similar to Craigslist. It was written in PHP and uses MySQL to for data storage. Additionally, it uses jQuery for elegant effects and that web 2.0 pizzazz you ve always dreamed of. The general design is simple and clean which should go well with any site, customization can be done easily through the CSS file. You can add your header and footer to it or include it in an iframe and you are ready to roll. And if you want to get your hands dirty in code, the comments will help you know what is going on. - PHP - MySQL (4 or 5) - GD Library to support images (Copy of the Vendor Homepage: http://market.matterdaddy.com/ ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Team discovered multiple SQL Injection Vulnerabilities on Matterdaddys Market eCommerce Content Management System v1.1. Vulnerability Disclosure Timeline: ================================== 2012-04-09: Public or Non-Public Disclosure Discovery Status: ================= Published Exploitation Technique: ======================= Remote Severity Level: =============== High Technical Details & Description: ================================ A remote SQL Injection vulnerability is detected on Matterdaddys Market eCommerce Content Management System v1.1. The vulnerability allows an attacker (remote) or local low privileged user account to inject/execute own sql commands on the affected application dbms. Successful exploitation of the vulnerability results in dbms & application compromise. Vulnerable Module(s): [+] Controller - cat_order= & cat_name= --- SQL Exception Logs --- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ` -1` at line 1 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near `-1` at line 2 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ` -1 ` at line 3 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ` -1 `at line 4 Picture(s): ../1.png ../2.png Proof of Concept (PoC): ======================= The sql injection vulnerability can only be exploited by privileged user accounts without required user inter action. For demonstration or reproduce ... 1. server.com/mdmarket/admin/controller.php?cat_name=1&cat_order=-1%27[SQL INJECTION] &add=Add+Category&op=newCategory 2. server.com/mdmarket/admin/controller.php?cat_name=-1%27[SQL INJECTION] &cat_order=1&add=Add+Category&op=newCategory Security Risk: ============== The security risk of the sql injection vulnerabilities is estimated as high(-). Credits & Authors: ================== Vulnerability Research Laboratory - Chokri B.A. (Me!ster) Disclaimer & Information: ========================= The information provided in this advisory is provided as it is without any warranty. Vulnerability-Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability- Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases or trade with fraud/stolen material. Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.vulnerability-lab.com/register Contact: admin@vulnerability-lab.com - support@vulnerability-lab.com - research@vulnerability-lab.com Section: video.vulnerability-lab.com - forum.vulnerability-lab.com - news.vulnerability-lab.com Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, sourcecode, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact (admin@vulnerability-lab.com or support@vulnerability-lab.com) to get a permission. Copyright © 2012 | Vulnerability Laboratory