Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » <3 MySpace

This thread is locked; no one can reply to it. rss feed Print
<3 MySpace
Jakub Wasilewski
Member #3,653
June 2003
avatar

Okay, so I read the OP and figured "what the hell, I'll see if this is something really obvious.".

So, I went to MySpace (for the first time in my life, I believe), created an account and started toying with my profile under Internet Explorer.

Well, it took me 1 minute to find a vulnerability that allowed me to run arbitrary javascript under IE. Basically, the first thing I've tried worked liked a charm. I don't know if I found the same vulnerability as CGames (mine works only on IE, while I'm under the impression that his is cross-browser), but honestly, the thing is riddled with holes.

I'm just wondering why nobody bothered to hack it yet. I mean, there is quite a lot of cred (in some places, at least) to be earned by tampering with a site that has a zillion users. And it seems so simple it hurts.

Well, perhaps people have hacked it and have been using it silently for their malicious purposes for years now.

It makes me wonder though - can't MySpace afford some good programmers who could write them a less-vulnerable site? The vulnerability I exploited was the first thing I would think of when patching up XSS holes, anyone competent should've thought of it too...

---------------------------
[ ChristmasHack! | My games ] :::: One CSS to style them all, One Javascript to script them, / One HTML to bring them all and in the browser bind them / In the Land of Fantasy where Standards mean something.

Matthew Leverton
Supreme Loser
January 1999
avatar

MySpace is so horrible even the hackers stay away. Would you spray graffiti somewhere if you had to crawl through miles of poop?

Michael Jensen
Member #2,870
October 2002
avatar

Quote:

It makes me wonder though - can't MySpace afford some good programmers who could write them a less-vulnerable site? The vulnerability I exploited was the first thing I would think of when patching up XSS holes, anyone competent should've thought of it too...

I think there is an ego thing... Also there's a lot of money to be made a web-cam-whore, or advertiser ... most hackers are probably making $$ with their accounts; though I've even seen some pages that come up after I look to see who friend requested me, and it says that it's an adult profile and that I need to download and install some exe to see it, haha (it's obvious that it's just an opaque frame on top of their profile using absolute positioning that they added...)

Also, I've seen profiles that have javascript effects like the annoying floating stars, etc... so it's obvious that it's possible.

I feel left out for not being a 1337 js hacker... :(

Matthew Leverton
Supreme Loser
January 1999
avatar

Do they still allow you to embed objects (Quicktime, Flash, etc) that have JS inside them?

Michael Jensen
Member #2,870
October 2002
avatar

you can embed flash with either the embed or the object tag (only one of the two works and I forget which one)

CGamesPlay
Member #2,559
July 2002
avatar

Jakub: Mine was really obvious to me, but getting it to work in other browsers was also obvious. I don't know if you should bother reporting it. Here's the response I got to my above message.

Quote:

Subject: MySpace - Error on Site
From: MySpace Contact1 <mscontact1@myspace.com>

Hello,

That issue is currently being resolved. Please be patient.

Thank you,

MySpace.com

Yeah, the same one.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Jakub Wasilewski
Member #3,653
June 2003
avatar

Quote:

Yeah, the same one.

They probably get enough reports each day that they don't bother checking them anyway. All it takes to make ordinary people feel that their issue is being addressed is a polite mailing bot...

---------------------------
[ ChristmasHack! | My games ] :::: One CSS to style them all, One Javascript to script them, / One HTML to bring them all and in the browser bind them / In the Land of Fantasy where Standards mean something.

ReyBrujo
Moderator
January 2001
avatar

CGamesPlay, report that to Secunia, Security Focus or even Frsirt, they will surely create an exploit for you ;) Of course, living in a country where you can get sued for walking past someone without greeting, I understand your fear 8-)

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Matthew Leverton
Supreme Loser
January 1999
avatar

I would write a JS virus that removes all friends and deletes all the profile info (except for the virus code). That would be cool.

Jakub Wasilewski
Member #3,653
June 2003
avatar

Quote:

I would write a JS virus that removes all friends and deletes all the profile info (except for the virus code). That would be cool.

Then do that. You'll need about 5 minutes of free time to find your own private vulnerability (3 of those used for creating an account), and then an hour or so to write an exploit. No big deal ;).

---------------------------
[ ChristmasHack! | My games ] :::: One CSS to style them all, One Javascript to script them, / One HTML to bring them all and in the browser bind them / In the Land of Fantasy where Standards mean something.

Matthew Leverton
Supreme Loser
January 1999
avatar

Quote:

Sorry! an unexpected error has occurred.

This error has been forwarded to MySpace's technical group.

I love that one! I had to log in to get my URL.


http://www.myspace.com/55864621

Poor Josiah Homer has no friends. But is he in your extended network? That's special!

I had 7 spams in the inbox and 1 invite request from some random girl (who appeared to be legit) living in a different state. The intarwebs are so cool.

Jakub Wasilewski
Member #3,653
June 2003
avatar

Quote:

Sorry! A totally expected error has occurred.
This error has been forwarded to /dev/null.

Fixed.

---------------------------
[ ChristmasHack! | My games ] :::: One CSS to style them all, One Javascript to script them, / One HTML to bring them all and in the browser bind them / In the Land of Fantasy where Standards mean something.

Matthew Leverton
Supreme Loser
January 1999
avatar

Woohoo, I have JS on my page.

Check it out with IE ... it's actually immune! :o

~

I have a great idea. I need to make a zombie network with the virus. Such that it loads the JS code from my profile via a remote XMLHttpRequest. (That way I can have it run arbitrary code.) Wait until every myspace profile is infected with the virus (by a harmless invisible div) and then on doomsday, unleash the payload (ie, delete everyone's content).

Disclaimer: This is just educational. Don't try this at home. (Unless you live in Russia.)

BAF
Member #2,981
December 2002
avatar

Quote:

Sorry! A totally expected error has occurred.
This error has been forwarded to the Recycling Bin.

Fixed. They run Windows servers, so they don't have /dev/null. :P

Matthew Leverton
Supreme Loser
January 1999
avatar

I love their feeble attempts at security.

eval(document.getElementById('foo').innerHTML)

gets translated to:

...document.getElementById('foo')...)

They are security experts! But wait...

window['ev' + 'al'](document.getElementById('foo')['inner'+'HTML']);

:-[ ;D

(edit: updated for correctness)

Jonatan Hedborg
Member #4,886
July 2004
avatar

Matthew: :D

Awesome. It's like an untapped vein of hacking goodness.
someone PHUULEEZE make the virus mentioned above.
Make them pay for their insolence! :D

BAF
Member #2,981
December 2002
avatar

How do you inject the javascript itself, doesn't it filter <script> tags?

[edit]
Or do you use some type of onload tag?

Matthew Leverton
Supreme Loser
January 1999
avatar

http://www.myspace.com/55864621

Try that out. Works instantly in IE. FF and Opera requires you to click the link and hit back (YMMV).

It's safe. I promise. ;)

{"name":"591182","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/a\/1a4969a4fa7da7a226c268fe452c3710.png","w":1028,"h":772,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/a\/1a4969a4fa7da7a226c268fe452c3710"}591182

BAF
Member #2,981
December 2002
avatar

I had to try to load that page several times. I kept getting this:

{"name":"591183","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/3\/03c83d3d887b8ba6f16288f0957599d6.png","w":1200,"h":900,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/3\/03c83d3d887b8ba6f16288f0957599d6"}591183

Matthew Leverton
Supreme Loser
January 1999
avatar

That's just standard MySpace procedure.

I'm starting to get sick from just thinking about how so many people use MySpace despite how crappy it is. :P Peer pressure and having to be cool works wonders.

BAF
Member #2,981
December 2002
avatar

I don't think it really reports the error. Notice the URL. Refresh the page. There is no post data, there is no error data to report. You can paste that URL into a new browser session and get the same 'reported the error' message.

I'm surprised that myspace is as horribly coded as it is. I knew it was bad, but I didn't know how bad until I looked at the source. The horrid HTML, nested tables, and messiness of it all makes me want to gouge my eyes out.

Matthew Leverton
Supreme Loser
January 1999
avatar

I'd love to see the list of dirty words, like innerHTML, eval, and javascript. God forbid you actually want to say one of those words in plain text.

BAF
Member #2,981
December 2002
avatar

I think Myspace was the product of a bunch of monkeys locked in a room. Eventually, given enough monkeys and time, they will reproduce Shakespeare. If they could reproduce Shakespeare, it couldn't take very long at all for those monkeys to produce MySpace. ;D

Bruce Perry
Member #270
April 2000

BAF, the error would most likely not be client-side. The server would encounter an error, log it, and reply with 302: browser redirect. There would be no POST data.

Myspace is addictive :-X

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

BAF
Member #2,981
December 2002
avatar

Well, if it were RFC compliant, it would give that error page with a 500 reply, and not redirect at all.



Go to: