Document Title: =============== Simple Member v1.2.x - Auth Bypass Vulnerability Release Date: ============= 2011-06-13 Vulnerability Laboratory ID (VL-ID): ==================================== 126 Product & Service Introduction: =============================== Simple Member allows you to put up that much needed protective area on your web site where you don t want anyone snooping without first signing up. Requirements: - PHP 4 - MySQL (Copy of the Vendor Homepage: sourceforge.net) Abstract Advisory Information: ============================== Vulnerability-Lab Team discovered a SQL-Injection Vulnerability on the CMS Simple Member v1.2a. The vulnerability allows an remote attacker to get unauthorized database & application access. Vulnerability Disclosure Timeline: ================================== 2011-06-08: Public or Non-Public Disclosure Discovery Status: ================= Published Affected Product(s): ==================== Exploitation Technique: ======================= Remote Severity Level: =============== High Technical Details & Description: ================================ Remote attackers can use the detected Sql-Injection vulnerability for an unauthorized Auth-Bypass. Attackers can use a existing uid and can try $_REQUEST[pwd] with a string like or 1=1/*. The result of the test is a auth bypass via sql injection. Vulnerable Modules: [+] Members Proof of Concept (PoC): ======================= The vulnerability can be exploited by unauthorized remote attackers. For demonstration or reproduce ... Path: http://www.example.com/SimpleMember/ File: member.php Parameter: ?pwd= Input: 'OR 1=1/* PoC: http://www.example.com/SimpleMember/member.php?pwd='OR 1=1/* Solution - Fix & Patch: ======================= Vulnerable File: member.php Bad Statement: $res = mysql_query(SELECT * FROM users WHERE uid=$uid AND pwd=\\\'$pwd\\\' and status=active); Use the prepaired statement & class to fix the sql vulnerability. Escape & filter the input validation for login and a parse on parameter ?pwd= Security Risk: ============== The security risk of the vulnerability is estimated as high. The vulnerability allows to bypass the login via sql injection attack. Credits & Authors: ================== Vulnerability Research Laboratory 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