User Control Panel
Search iVirtua
Advanced/Tag Search...
Search Users...
What is iVirtua Exclusive Community?
  • An exclusive gaming industry community targeted to, and designed for Professionals, Businesses and Students in the sectors and industries of Gaming, New Media and the Web, all closely related with it's Business and Industry.
  • A Rich content driven service including articles, contributed discussion, news, reviews, networking, downloads, and debate.
  • We strive to cater for cultural influencers, technology decision makers, early adopters and business leaders in the gaming industry.
  • A medium to share your or contribute your ideas, experiences, questions and point of view or network with other colleagues here at iVirtua Community.
Guest's Communication
Live Chat
Teamspeak (VOIP) Audio Conference
Private Messages
Check your Private Messages
Themes
Choose an iVirtua Community theme to reflect your interests...
Business Theme
India/Arabic Theme

Gaming Theme
iVirtua Recommends
Fly Emirates Advertising
Facebook Source Code Leaked - Actual PHP Code - Download
Digg This Digg Topic Tag it on del.icio.us Tag topic on On del.icio.us Technorati Search Technorati Search Post to Slashdot Post to Slashdot
You are currently in Programming, Web and Software Design/Development
Post new topic Reply to topic
Mon Aug 13, 2007 8:17 pm Reply and quote this post
Facebook Source Code Leaked - Actual PHP Code

Check out the source code to the Facebook index page, which has been leaked. This is the only page they have up right now.

http://facebooksecrets.blogspot.com/

The digg despite 1000+ diggs was removed...
http://digg.com/tech_news/Facebook_Source_Code_Leaked_Actual_PHP_Code

Quote:
Sender Information:
Facebook Legal
Sent by: [Private]
[Private]
USA

Recipient Information:
[Private]
Digg, Inc.
USA

Sent via: email
Re: Notice of Copyright Infringement

Greetings,

You are hereby notified that copies of source code taken from the www.facebook.com http://www.facebook.com website have been posted in the following locations:

http://digg.com/tech_news/Faceb...=8452977#c8452977
http://digg.com/tech_news/Faceb...=8452977#c8454889

The posting of these materials infringes the copyrights of Facebook, Inc., and we request that you immediately remove the materials from your site. I may be contacted at this e-mail address, or by telephone at [private]. I hereby state my good faith belief that the posting of this material is not authorized by the copyright owner, its agent or the law, and that the information contained in this notice is accurate. Under penalty of perjury, I am authorized to act on behalf of the copyright owner. If these materials are not expeditiously removed, we reserve the right to pursue all legal remedies available to us, including seeking damages and injunctive relief.

Signed,
[private]


You may download the facebook homepage source code here:
http://pastebin.com/pastebin.php?dl=f23937796

You may also view it here in PHP syntax colouring
http://pastebin.com/f23937796

You can't do anything with this. This doesn't have any of the actual functions or anything. It's just making a bunch of calls. This is no big deal. I don't see why people would make it out to be that way, but its fun! However - This may only be a set of function calls, but when you think about it, you can get a view of the directory structure. For instance, the code gives clues about how to get to all the javascript and AJAX.

In the comment section of the blog...
search.php source code has been posted. There are many expeltives in the code, which to many are more interesting than the code inself...


...
Code:
// Holy shit, is this the cleanest fucking frontend file you've ever seen?!
ubersearch%u28$_GET, $embedded=false, $template=true%u29;
...

I'm not sure anything can be done through a C&D to those hosting the code, some people have got copies of profilephp when it is unintionally shown to them.


Last edited by Editorial Team on Mon Aug 13, 2007 8:27 pm; edited 2 times in total

Contributed by Editorial Team, Executive Management Team
372659 iVirtua Loyalty Points • View ProfileSend Private MessageBack to Top

Mon Aug 13, 2007 8:24 pm Reply and quote this post
Quote:

I wanted to clarify a few things in your story. Some ofFacebook’s source code was exposed to a small number of users due to abug on a single server that was misconfigured and then fixedimmediately. It was not a security breach and did not compromise userdata in any way. The reprinting of this code violates several laws andwe ask that people not distribute it further.Thanks to you and the TC readers for helping us out on this one.
Brandee Barker
Facebook

Interestingly, The Wrong Advice points out a blog entry which used to contain the source to profile.phpand a commenter who claims to have gotten photo.php. Others have postedsearch and groups code online. Facebook isn’t just hacked, it’s leakingsource code all the time.
The alleged source code contains some humorous comments, which I will list here:


Quote:
// FIXME?: is it sub-optimal to call this both in requests_get_cache_data and here?


Quote:
// make sure big tunas haven’t moved around


/
Quote:
/ Merman’s Admin profile always links to the Merman’s home


Quote:
// Friend’s Feed Selector - Requires dev.php constant


Quote:
// Holy shit, is this the cleanest fucking frontend file you've ever seen?!



I’ve got the feeling that Facebook, just like MySpace, is a web 2.0site strung together with glue; glancing at the alleged code doesn’tmake me feel great about their infrastructure. They have hugewin32-api-esque functions likemultiget_fresh_notstale_hashed_network_with_orientation (i made thisup), a procedural, rather than object oriented structure, and no cleanabstractions or MVC scheme. At least they’re using smarty fortemplating, though….

index.php and photo.php are posted here, too http://opensc.ws/showthread.php?p=14387 a site which has the source code for many sites.

Contributed by Editorial Team, Executive Management Team
372659 iVirtua Loyalty Points • View ProfileSend Private MessageBack to Top

Tue Aug 14, 2007 12:33 am Reply and quote this post
It seems quite a few 'web2.0' sites are cut & shut jobs and have some rather bad, exploitable problems due to being turned out in the quickest amount of time possible for the least overhead. lol I remember the days when...
Contributed by defukt, iVirtua Leading Contributor
3255 iVirtua Loyalty Points • View ProfileSend Private MessageBack to Top

Tue Aug 14, 2007 12:33 am Reply and quote this post
So other than just the source code being leaked have there been any actual attacks (stealing info, etc.)?
Contributed by pentapenguin, iVirtua Expressed Contributor
1926 iVirtua Loyalty Points • View ProfileSend Private MessageBack to Top

Tue Aug 14, 2007 3:35 am Reply and quote this post
Time to get making some fake facebook sites lol (and get sued This will allow people to see how facebook was made and may even lead to them making a site that competes with facebook. Such a shame they didn't leak the MySql database. Now that would be fun
Contributed by Tom_Allen, iVirtua Participating Member
812 iVirtua Loyalty Points • View ProfileSend Private MessageBack to Top

Tue Aug 14, 2007 3:00 pm Reply and quote this post
pentapenguin wrote:
So other than just the source code being leaked have there been any actual attacks (stealing info, etc.)?

Didnt facebook also get sued or taken to court 2weeks ago ro so???

Contributed by TjA, iVirtua Active Member
454 iVirtua Loyalty Points • View ProfileSend Private MessageBack to Top

Related Articles
Post new topic   Reply to topic


Page 1 of 1

iVirtua Latest
Latest Discussion

Discuss...
Latest Articles and Reviews

Latest Downloads
Subscribe to the iVirtua Community RSS Feed
Use RSS and get automatically notified of new content and contributions on the iVirtua Community.


Tag Cloud
access amd announced applications author based beta building business card case company content cool core course cpu create data deal dec demo design desktop developers development digital download drive email feature features file files firefox flash free future gaming google graphics hardware help industry information intel internet iphone ipod jan launch linux lol love mac market media memory million mobile money movie music net nintendo nov nvidia oct office official online patch performance playing power price product program ps3 pst publish ram release released report rss sales screen search security sep server show size software sony source speed support technology thu tue update video vista war web website wii windows work working works xbox 360 2006 2007 2008

© 2006 - 2008 iVirtua Community (UK), Part of iVirtua Media Group, London (UK). Tel: 020 8144 7222

Terms of Service and Community RulesAdvertise or Affiliate with iVirtuaRSSPress Information and Media CoverageiVirtua Version 4PrivacyContact