Document Title: =============== Facebook My Phrase Box - SQL Injection Vulnerability Release Date: ============= 2011-10-15 Vulnerability Laboratory ID (VL-ID): ==================================== 288 Product & Service Introduction: =============================== The application is currently included and viewable by all facebook users. The service is an external 3rd party application sponsored by the My Phrase Box. (Copy from the Vendors Homepage: 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: Abstract Advisory Information: ============================== Vulnerability-Lab researcher discovered a remote SQL Injection vulnerability on the 3rd party web application - My Phrase Box ( Vulnerability Disclosure Timeline: ================================== 2011-09-01: Vendor Notification 2011-09-07: Vendor Response/Feedback 2011-**-**: Vendor Fix/Patch 2011-10-16: Public or Non-Public Disclosure Discovery Status: ================= Published Affected Product(s): ==================== Exploitation Technique: ======================= Remote Severity Level: =============== High Technical Details & Description: ================================ A SQL Injection vulnerability is detected on the My Phrase Box facebook application (apps.facebook). The vulnerability allows an attacker (remote) to inject/execute own sql statements on the affected fb application dbms. Successful exploitation of the vulnerability can result in compromise of the affected application dbms. Vulnerable Module(s): [+] My Phrase Box - Facebook 3rd Party Application Vulnerable Param(s): [+] ?show_dialog= & app_id= Affected Application(s): [+] --- SQL Logs --- 5.1.54-1ubuntu4-log: 11 --- Pictures: ../1.png Proof of Concept (PoC): ======================= The vulnerability can be exploited be remote attackers. For demonstration or reproduce ... URL: Path: /my_phr_box/ File: app.php Param: ?show_dialog= & app_id= Example: http://[APP-SERVER]/[SERVICE-APP]/[FILE].[PHP]?show_dialog=[x]&app_id= [x] PoC: MPB SQL Injection PoC