Title: ====== Facebook NYClubs - Multiple Web Vulnerabilities Date: ===== 2012-02-17 References: =========== http://www.vulnerability-lab.com/get_content.php?id=440 VL-ID: ===== 440 Introduction: ============= The application is currently included and viewable by all facebook users. The service is an external 3rd party application sponsored by the Facebook NYClubs Development Team. (Copy from the Vendors Homepage: http://apps.facebook.com/nyclubs/) Facebook is a social networking service and website launched in February 2004, operated and privately owned by Facebook, Inc. As of July 2011, Facebook has more than 750 million active users. Users may create a personal profile, add other users as friends, and exchange messages, including automatic notifications when they update their profile. Facebook users must register before using the site. Additionally, users may join common-interest user groups, organized by workplace, school or college, or other characteristics. (Copy of the Vendor Website: http://en.wikipedia.org/wiki/Facebook) Abstract: ========= Vulnerability-Lab researcher discovered multiple web vulnerabilities on the 3rd party web application - Facebook NYClubs (apps.facebook.com). Report-Timeline: ================ 2012-02-15: Vendor Notification 2012-02-16: Vendor Response/Feedback 2012-02-16: Developer Notification by Facebook Security 2012-02-17: Public or Non-Public Disclosure Status: ======== Published Exploitation-Technique: ======================= Remote Severity: ========= High Details: ======== 1.1 A remote SQL Injection Vulnerability is detected on the Facebook NYClubs application (apps.facebook). The vulnerability allows an attacker (remote) to inject/execute own sql statements on the affected fb application dbms. Successful exploitation can result in a stable application, service or dbms compromise. Vulnerable Application(s): [+] NYClubs - Facebook 3rd Party Application Vulnerable Module(s): [+] Messagebox Affected Service(s): [+] apps.facebook.com/nyclubs/ --- Exception/Error Logs --- INSERT INTO reviews (club_id, ip, name, fbid, location, email, rating, content, active, approved) VALUES (652,`121.112.203.222 ` Sven R-m,100001940496405,`x014831@gmail.com`,10,`>` iiiiiiiii-(Rated 9/10) Picture(s): ../1.png 1.2 A client side Cross Site Scripting Vulnerability is detected on the Facebook NYClubs application (apps.facebook). The vulnerability allows an attacker (remote) to hijack sessions & manipulate client-side application requests with high required user inter action. Vulnerable Module(s): [+] ?r=sregion&d= Picture(s): ../2.png Proof of Concept: ================= The vulnerabilities can be exploited with & without high required user inter action. For demonstration or reproduce ... 1.1 Vulnerable: [MessageBox Input] ---> Include a frame to the local app website & extract the error log Tables: club_id, ip, name, fbid, location, email, rating, content, active, approved IP: 121.112.203.222 NAME: Sven R-m Mail: x014831@gmail.com Limit: 10-- Type: Order by Injection Reference(s): ../652.htm 1.2 http://apps.facebook.com/nyclubs/?r=sregion&d=%3Ciframe%20src=http://vulnerability-lab.com %20width=750%20height=700%3E Reference(s): ../NYClubs on Facebook.htm Risk: ===== The security risk of the application sql injection vulnerability is estimated as high(+). Credits: ======== Vulnerability Research Laboratory - N/A Anonymous Disclaimer: =========== 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. Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability- Lab. 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 or its suppliers. Copyright © 2012|Vulnerability-Lab -- Website: www.vulnerability-lab.com ; vuln-lab.com or vuln-db.com Contact: admin@vulnerability-lab.com or support@vulnerability-lab.com