Lucene search
K

Facebook Fit-ify! - SQL Injection Vulnerability

🗓️ 17 Dec 2011 00:00:00Reported by Vulnerability Research Laboratory - Ucha Gobejishvili (longrifle0x) Type 
vulnerlab
 vulnerlab
🔗 www.vulnerability-lab.com👁 34 Views

Facebook Fit-ify! SQL Injection Vulnerability - High severity remote SQL injection vulnerability on Facebook Fit-ify! third-party application

Code
Document Title:
===============
Facebook Fit-ify! - SQL Injection Vulnerability


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=337


Release Date:
=============
2011-12-17


Vulnerability Laboratory ID (VL-ID):
====================================
337


Common Vulnerability Scoring System:
====================================
7.5


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 Facebook Fit-ify! Development Team.

(Copy from the Vendors Homepage: http://facebook.com/pages/I-may-be-gone-some-time/)

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 - Fit-ify! (apps.facebook.com).


Vulnerability Disclosure Timeline:
==================================
2011-11-22:	Vendor Notification
2011-12-18:	Public or Non-Public Disclosure


Discovery Status:
=================
Published


Exploitation Technique:
=======================
Remote


Severity Level:
===============
High


Technical Details & Description:
================================
A SQL Injection vulnerability is detected on the Fit-ify! 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): 
			                            [+] Fit-ify! - Facebook 3rd Party Application

Vulnerable Param(s)/File(s): 
			                            [+] 143596152351911?sk=app_8209307103

Affected Application: 
			                            [+] facebook.com/pages/I-may-be-gone-some-time/


--- SQL Error Logs ---
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/fitify/fitify.com/lib.php on line 196
You haven\\\\\\\\\\\\\\\'t recorded any work-outs yet. Time to get outside and start exercising!
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/fitify/fitify.com/lib.php on line 538
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/fitify/fitify.com/lib.php on line 538
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/fitify/fitify.com/lib.php on line 538
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/fitify/fitify.com/lib.php on line 245
		
Picture(s):
						../1.png


Proof of Concept (PoC):
=======================
The vulnerability can be exploited by remote attackers. For demonstration or reproduce ...

URL:		facebook.com/pages
Path:		/I-may-be-gone-some-time/
Request:	143596152351911?sk=app_8209307103

Example:
http://[FACEBOOK]/[PAGE]/[FILE]?[PARAM]=[ID]&[SQL Injection]


PoC:
http://www.facebook.com/pages/I-may-be-gone-some-time/143596152351911?sk=app_8209307103[SQL-Injection]


Solution - Fix & Patch:
=======================
Use the prepared statement class to fix the sql injection vulnerability & filter sql error requests.
Set error(0) to prevent against information disclosure via exceptions or error reports.


Security Risk:
==============
The security risk of the application sql injection vulnerabilities are estimated as high(+).


Credits & Authors:
==================
Vulnerability Research Laboratory - Ucha Gobejishvili (longrifle0x) 


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:    [email protected] 	- [email protected] 	       - [email protected]
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 ([email protected] or [email protected]) to get a permission.

    				   	Copyright © 2012 | Vulnerability Laboratory



Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation