backdoor Posted February 15, 2012 Report Posted February 15, 2012 Title:======Facebook view my calendar - SQL Injection VulnerabilityDate:=====2012-02-14References:===========http://www.Ninja-Sec.comIntroduction:=============The application is currently included and viewable by all facebook users.The service is an external 3rd party application sponsored by the Facebookview my calendar Development Team.(Copy from the Vendors Homepage: http://apps.facebook.com/viewmycalendar/)Facebook is a social networking service and website launched in February2004, operated and privately ownedby Facebook, Inc. As of July 2011, Facebook has more than 750 millionactive users. Users may createa personal profile, add other users as friends, and exchange messages,including automatic notifications whenthey update their profile. Facebook users must register before using thesite. Additionally, users may joincommon-interest user groups, organized by workplace, school or college, orother characteristics.(Copy of the Vendor Website: http://en.wikipedia.org/wiki/Facebook)Abstract:=========Ninja-Sec discovered a remote SQL Injection vulnerability on the 3rd partywebapplication - Facebook Life Smile (apps.facebook.com).Report-Timeline:================2012-02-02: Vendor Notification2012-02-02: Developer Notification2012-02-04: Public or Non-Public DisclosureStatus:========PublishedExploitation-Technique:=======================RemoteSeverity:=========HighDetails:========A remote SQL Injection vulnerability is detected on the Facebook Life Smile(apps.facebook).The vulnerability allows an attacker (remote) to inject/execute own sqlstatements on the affected fb application dbms.Vulnerable Module(s): [+] Life Smile - Facebook 3rd PartyApplicationVulnerable Param(s)/File(s): [+] index.phpAffected Application: [+] apps.facebook.com/viewmycalendar/Sql Error---Fatal error: Uncaught exception 'PDOException' with message'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an errorin your SQL syntax; check the manual that corresponds to your MySQL serverversion for the right syntax to use near 'order by mon ASC' at line 3' in/home/ashishl/public_html/calendar/index.php:157 Stack trace: #0/home/ashishl/public_html/calendar/index.php(157): PDOStatement->execute()#1 {main} thrown in /home/ashishl/public_html/calendar/index.php on line 157----Proof of Concept:=================The vulnerability can be exploited by remote attackers. For demonstrationor reproduce ...URL: http://apps.facebook.com/Path: /viewmycalendar/File: index.phpExample:http://[APP-SERVER]/[SERVICE-APP]/[FILE].[PHP]?=[SQL Injection]PoC:http://apps.facebook.com/viewmycalendar/index.php?page=[SQL-Injection]Real World Demo :http://apps.facebook.com/viewmycalendar/index.php?page=1'Risk:=====The security risk of the application sql injection vulnerabilities areestimated as high(+).Credits:========Ninja-Sec Research Laboratory - Mohamed Saad (Anti-Trust)Disclaimer:===========The information provided in this advisory is provided as it is without anywarranty. Ninja-Sec disclaims all warranties,either expressed or implied, including the warranties of merchantabilityand capability for a particular purpose. Ninja-Sec or its suppliers are notliable in any case of damage, including direct, indirect, incidental,consequential loss of businessprofits or special damages, even if Ninja-Sec.com or its suppliers havebeen advised of the possibility of such damages. Somestates do not allow the exclusion or limitation of liability forconsequential or incidental damages so the foregoing limitationmay not apply. Any modified copy or reproduction, including partiallyusages, of this file requires authorization from Ninja-Sec. Permission toelectronically redistribute this alert in its unmodified form is granted.All other rights, including the use ofother media, are reserved by Ninja-Sec or its suppliers.Copyright © 2012|Ninja-Sec-- Website: www.Ninja-Sec.comContact: NinjaSec007@gmail.comSursa: Facebook View My Calendar SQL Injection ? Packet Storm Quote