exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

facebook-xss.txt

facebook-xss.txt
Posted Jun 20, 2008
Authored by Jouko Pynnonen | Site klikki.fi

The Facebook fb:silverlight FBML tag suffers from a persistent cross site scripting vulnerability.

tags | advisory, xss
SHA-256 | 12ce66213e05ec6e311c300a52ea6a73436286c058c21c6733c9f54c32e0d897

facebook-xss.txt

Change Mirror Download
OVERVIEW
=========

Facebook is a free-access social networking website with over 100
million active users. Facebook allows anyone to develop web
applications to be used on the site with the Facebook Platform. The
Platform includes a markup language called FBML and a sandboxed,
specialized flavor of JavaScript called FBJS.

A persistent XSS vulnerability was found in way fb:silverlight FBML
tag is processed. The tag is used to embed Microsoft Silverlight
content in Facebook pages. JavaScript can be injected in the tag so
that it runs when the page in question is viewed.

An attacker exploiting the vulnerability could take control of the
victim user's web browser to do any operations on Facebook he/she
could do, including read or manipulate personal information stored on
Facebok, access Facebook's internal e-mail messages, send such
messages impersonating the user, friend list manipulation,
installation of Facebook applications, posting messages on "walls" or
other public forums, etc.

The method would allow creating a JavaScript worm or virus. In this
scenario, users viewing an infected profile, wall post, internal
e-mail message, or application page would get infected without other
user interaction. The script could get automatically, quietly injected
in their profile and spread on to any visitors' profiles.

Facebook has fixed the problem this week. However, four other
vulnerabilities of roughly similar impact remain at the time of
writing.



DETAILS
=======

The fb:silverlight FBML tag looks like the following:

<fb:silverlight silverlightsrc="http://src.site/silverlight"
width="400" height="300" />

The Facebook Platform processes this into a piece of HTML code
containing an embed or object tag, plus a piece of JavaScript
initializing the Silverlight object, resembling the following:

var parentElement = document.getElementById("silverlightControlHost");
createSilverlightControl("http://src.site/silverlight", "400", "300");

The framework encodes the parameters correctly when it comes to the
HTML part, but a trailing backslash in the widh or height paramer
causes syntactical problems in the JavaScript part. Thus, the
following FBML tag:

<fb:silverlight silverlightsrc="a" width="\"
height=",any_javascript_code_here);//" />

would produce the following JavaScript on the resulting web page:

var parentElement=document.getElementById("silverlightControlHost");
createSilverlightControl("a", "\", ",any_javascript_code_here);//");

An attacker can then place arbitrary JavaScript code in the function
argument e.g. using eval() or an inline function.



VENDOR RESPONSE
=================

In total five vulnerabilities of roughly the same impact were found
during the few days after June 13th, 2008. Facebook development team
was notified of the first one on that day and the others when they
were discovered. The vulnerability described here appears to have been
fixed during the following days. The others seem to remain at the
moment.

Facebook's response was an e-mail stating "We are aware of the
problems that you described and hope to resolve them as soon as
possible." It is unclear if Facebook has been aware of all the issues
prior to my reports as my queries concerning this haven't been
replied.



CREDITS
=======

The vulnerabilities were found and investigated by Jouko Pynnonen, Finland.



--
Jouko Pynnonen <jouko@iki.fi>
http://iki.fi/jouko

Login or Register to add favorites

File Archive:

August 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close