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:

September 2019

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2019 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close