what you don't know can hurt you

Facebook Applications Null Byte Injection

Facebook Applications Null Byte Injection
Posted Jan 25, 2012
Authored by Fiez Crack

Multiple Facebook applications suffer from a null byte SQL injection vulnerability.

tags | exploit, sql injection
MD5 | 86cce9541b3b4842da538ac60bb5b2a5

Facebook Applications Null Byte Injection

Change Mirror Download
Title
=====
Facebook Application Null Byte Injection


Date
====
25/01/2012


Author
======
<fiez_crack@yahoo.com>


Bug
===
Null Byte Injection


Introduction
============
The application is currently included and viewable by all facebook users.

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)


Vulnerability
=============
Once you open the link, there will be an error like e.g, SQL error.
- http://apps.facebook.com/chev_test_fre/
- http://apps.facebook.com/worldwide_dev/
- http://apps.facebook.com/morgans_test/
- http://apps.facebook.com/chev_test_ita/


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


Injectable (Proof Of Concept)
=============================
- http://apps.facebook.com/chev_test_ita/%00


SQL Error Logs
==============
Warning (512): SQL Error: 1048: Column 'language_id' cannot be null [CORE/cake/libs/model/datasources/dbo_source.php, line 681]
Code | Context

$out = null;
if ($error) {
trigger_error('<span style="color:Red;text-align:left"><b>' . __('SQL Error:', true) . "</b> {$this->error}</span>", E_USER_WARNING);

$sql = "INSERT INTO `actions` (`language_id`, `fb_id`, `src`, `dest`, `details`, `created`) VALUES (NULL, 0, '', '/contests/index', '{type:\"hit\"}', '2012-01-25 00:33:17')"
$error = "1048: Column 'language_id' cannot be null"
$out = null

Query: INSERT INTO `actions` (`language_id`, `fb_id`, `src`, `dest`, `details`, `created`) VALUES (NULL, 0, '', '/contests

Warning (2): require(webroot/css/main-.css) [function.require]: failed to open stream: No such file or directory [APP/views/layouts/facebook.ctp, line 36]
Code | Context

Fatal error: require() [function.require]: Failed opening required 'webroot/css/main-.css' (include_path='/var/www/html/chev_dale_ita:/var/www/html/chev_dale_ita/app/:.:/usr/share/pear:/usr/share/php') in /var/www/html/chev_dale_ita/app/views/layouts/facebook.ctp on line 36


Severity
========
High


Risk
====
As data is parsed, an injected NULL character or NULL byte may cause the software to believe the input is terminated earlier than it actually is, or otherwise cause the input to be misinterpreted.

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

July 2017

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    2 Files
  • 2
    Jul 2nd
    3 Files
  • 3
    Jul 3rd
    15 Files
  • 4
    Jul 4th
    4 Files
  • 5
    Jul 5th
    15 Files
  • 6
    Jul 6th
    15 Files
  • 7
    Jul 7th
    10 Files
  • 8
    Jul 8th
    2 Files
  • 9
    Jul 9th
    10 Files
  • 10
    Jul 10th
    15 Files
  • 11
    Jul 11th
    15 Files
  • 12
    Jul 12th
    19 Files
  • 13
    Jul 13th
    16 Files
  • 14
    Jul 14th
    15 Files
  • 15
    Jul 15th
    3 Files
  • 16
    Jul 16th
    2 Files
  • 17
    Jul 17th
    8 Files
  • 18
    Jul 18th
    11 Files
  • 19
    Jul 19th
    15 Files
  • 20
    Jul 20th
    15 Files
  • 21
    Jul 21st
    15 Files
  • 22
    Jul 22nd
    7 Files
  • 23
    Jul 23rd
    0 Files
  • 24
    Jul 24th
    0 Files
  • 25
    Jul 25th
    0 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2016 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close