Product & Service Introduction:
===============================
Facebook is an online social networking service, whose name stems from
the colloquial name for the book given to students
at the start of the academic year by some university administrations in
the United States to help students get to know
each other. It was founded in February 2004 by Mark Zuckerberg with his
college roommates and fellow Harvard University
students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris
Hughes. The website`s membership was initially limited
by the founders to Harvard students, but was expanded to other colleges
in the Boston area, the Ivy League, and Stanford University.
It gradually added support for students at various other universities
before opening to high school students, and eventually to anyone
aged 13 and over. Facebook now allows any users who declare themselves
to be at least 13 years old to become registered users of the site.

Users must register before using the site, after which they may create a
personal profile, add other users as friends, and exchange messages,
including automatic notifications when they update their profile.
Additionally, users may join common-interest user groups, organized by
workplace,
school or college, or other characteristics, and categorize their
friends into lists such as `People From Work` or `Close Friends`. As of
September 2012, Facebook has over one billion active users, of which
8.7% are fake. According to a May 2011 Consumer Reports survey, there are
7.5 million children under 13 with accounts and 5 million under 10,
violating the site`s terms of service.

In May 2005, Accel partners invested $12.7 million in Facebook, and Jim
Breyer added $1 million of his own money to the pot. A January 2009
Compete.com study ranked Facebook as the most used social networking
service by worldwide monthly active users. Entertainment Weekly included
the
site on its end-of-the-decade `best-of` list, saying, `How on earth did
we stalk our exes, remember our co-workers` birthdays, bug our friends,
and play a rousing game of Scrabulous before Facebook?` Facebook
eventually filed for an initial public offering on February 1, 2012, and
was
headquartered in Menlo Park, California. Facebook Inc. began selling
stock to the public and trading on the NASDAQ on May 18, 2012. Based on its
2012 income of USD 5.1 Billion, Facebook joined the Fortune 500 list for
the first time, being placed at position of 462 on the list published in
2013.

(Copy of the Homepage: http://en.wikipedia.org/wiki/Facebook )

Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered a client-side web
vulnerability in the official Facebook Stories web-application api.

Technical Details & Description:
================================
A non-persistent input validation & filter vulnerability has been
discovered in the official FacebookStories Online-Service web-application.
The vulnerability allows remote attackers to inject own script code via
POST method request on the client-side of the affected application.

The vulnerability is located in the filename value of the photos module.
The execute occurs in the exception-handling output of the upload
image post method request. Remote attacker are able to provoke the
application exception-handling to execute client-side script-code in the
error message context itself. The encoding of the error message after an
unsuccessful upload has is not the same way encoded like the other
input fields of the formular. In our example pictures we show how the
first injected code got parsed and why the secound client-side script
code has in the error message been successful executed. The error output
of the upload form exception does not encode the values of an invalid
file name. The result is the client-side execute of the script code
because of the values has not been saved to the database because of the
invalid upload.

Proof of Concept (PoC):
=======================
The non persistent web validation vulnerability in the
exception-handling can be exploited by remote attackers without
privileged web-application
user account but low or medium user interaction. For security
demonstration or to reproduce the vulnerability follow the provided
information
and steps below.

Note: The same procedure is confirmed for the video and images upload
because both use the same module of the exception-handling.
By reloading and using a session tamper to intercept it is possible to
have an influence (client-side) to the provoked exception
message of the file upload parser.

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.

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, source code, 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 (admin (at) vulnerability-lab (dot) com [email concealed] or
research (at) vulnerability-lab (dot) com [email concealed]) to get a permission.