Slashdot Log In
Cross-Site Scripting Hits Major Sites
Posted by
CmdrTaco
on Mon Sep 25, 2006 10:09 AM
from the scriptdidy-doo-daa-scriptdidy-day dept.
from the scriptdidy-doo-daa-scriptdidy-day dept.
An anonymous reader writes "Dark Reading and SC Magazine covered a story about hackers posting cross-site scripting (XSS) vulnerabilies en mass on dozens of high profile websites including Dell, MSN, HP, Apple, Myspace, YouTube, MSN, Cingular, etc. The media coverage drew the hacker's attention to the publication's websites where they got a taste first-hand. On message board wall-of-shame is PC World, MacWorld, Fox News, the Independent, and ZDNet UK. "...not only did we get the "scoop" on the XSS site problems, but we also got the message loud and clear: Don't assume you're immune to XSS vulnerabilities. They're everywhere." The news comes shortly after Mitre (CVE) released statistics showing XSS has become the most popular exploit. Unfortunately new XSS attacks are growing increasingly severe and scanners are unable to find many of the issues on modern websites."
This discussion has been archived.
No new comments can be posted.
Cross-Site Scripting Hits Major Sites
|
Log In/Create an Account
| Top
| 161 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.

The Cross Site Scripting FAQ (Score:5, Informative)
(http://www.cgisecurity.com/)
The Cross Site Scripting FAQ [cgisecurity.com]
Re:The Cross Site Scripting FAQ (Score:5, Interesting)
I particularly like this example [dlitz.net].
Here's the spoiler [dlitz.net].
Re:I don't get XSS (Score:4, Interesting)
(http://seenonslash.com/ | Last Journal: Friday May 11 2007, @04:02PM)
You get what you pay for with developers... (Score:4, Insightful)
(http://www.xanga.com/morrighu | Last Journal: Saturday August 26 2006, @09:16AM)
2 cents,
QueenB
Re:I don't get XSS (Score:4, Informative)
(Last Journal: Monday February 12 2007, @04:47PM)
Re:I don't get XSS (Score:4, Interesting)
(Last Journal: Saturday August 18 2001, @11:04AM)
I say this because people need to be aware that links are not the only vector. My favorite one I've seen so far is <bgsound src='javascript:bad_code()'>. If you choose poorly and are trying to filter out bad tags (instead of what you should be doing, specifying only exactly what tags and attributes are allowed and forbidding anything else that looks like a tag), did you remember to block out the BGSOUND tag? If not, that auto-executes; it doesn't even need to be clicked. (IE may have closed that; I saw this in the IE 4 era.)
Re:The Cross Site Scripting FAQ (Score:5, Informative)
(http://idunno.org/)
Now an evil hax0r manages to insert an XSS attack on slashdot what would happen is the attack would be embedded in a normal slashdot page, as a block. So the source would be from slashdot.org, and noscript would view it as being allowed.
Scripting? (Score:3, Funny)
Finally (Score:2)
(http://suso.suso.org/ | Last Journal: Tuesday March 09 2004, @12:03AM)
Scanners not able to find XSS (Score:3, Informative)
Move on... (Score:2, Informative)
(Last Journal: Thursday December 08 2005, @11:00PM)
So would it be technically possible at this point to move away from the web application and back to the client server app? Here's a path example:
* Java Client
* Servlet Interface for the client
* Java webstart deployment
* Java plugin on the clients
For this path the questions would surround authenticating the client and the hassle of installing the java plugin.
Rinse and repeat for the obligatory Microsoft solution.
I've never been a fan of web applications and form given the simplicity of creating an SQL injection attack or XSS for that matter. At least if the client application was built for the specific application you expose yourself to less or more obscure security vulnerabilities by nature.
In soviet russia.. (Score:4, Funny)
scanners (Score:3, Interesting)
(Last Journal: Saturday December 30 2006, @09:44PM)
Draw you own conclusions from there...
But of course Slashdot... (Score:4, Funny)
(Last Journal: Wednesday November 07, @10:09AM)
...remains unaffec... FOJSF{09fiE*EU90av['vlwIOA934MAwadpskf[aepfkfa[-09 u9a
Re:But of course Slashdot... (Score:5, Interesting)
(http://www.xenoveritas.org/ | Last Journal: Monday September 24, @04:04PM)
A while ago, someone posted a link to a webpage that, when clicked, caused their post to be moderated up. Their post was at +5 for quite a while until enough replies got moderated up pointing out that the link wasn't what it claimed to be.
So, in a sense, Slashdot has already been hit by a cross-site scripting vulnerability. The fix for XSS vulnerabilities like that involves requiring a secret token to be sent to take user actions, to prevent people from creating forms off-site and submitting them as the user. I suppose checking the referrer may work too, but I wouldn't count on it.
Web 2.0 anyone? (Score:2, Insightful)
Web 2.0: Cross-Site Scripting
Re:Web 2.0 anyone? (Score:4, Insightful)
(http://idunno.org/)
JavaScript/browser design flaw (Score:5, Insightful)
Writing any substantial piece of software in C, C++, or JavaScript without creating safety or security issues is extremely expensive and beyond the ability or resources of most developers. For C and C++, there are alternatives you can choose today. For JavaScript, you just have to minimize its use or simply not worry about it and let the client fix it with tools like NoScript.
I do my duty and report them. . . (Score:5, Insightful)
(http://www.kookdujour.com/)
but it's probably pointless. Not enough developers care about their craft.
There's a prominent "popular science" website out there (no, it's not this one [popularscience.com] that I'm thinking of) that has ENORMOUS XSS vulnerabilities in its image gallery. They pass captions and img src in URL encoded query string parameters. Yuck.
I noticed this about a year ago and reported it to the development team, with a demonstration link that put in a (sorta not nice) image and caption. No response, and when I checked six months ago the vulnerability was still there. So much for being a nice guy.
Too Lazy? (Score:2, Informative)
Experienced this firsthand. (Score:2, Interesting)
As a geek I appreciate it the technical qualities, as the guy who had to unhack an exploited server however..
Aren't there any laws against these attacks? (Score:1)
(http://www.777.com/)
I'm sure there are ways to know who the hacker is, so why don't they use the information to catch the criminals and put them on trial?
Useful PHP Script (Score:1)
(http://www.bluelinecity.com/)
Validate, Validate AND Validate (Score:5, Insightful)
(http://slashdot.org/ | Last Journal: Monday August 20, @10:21AM)
VALIDATE ALL INPUT EVERYWHERE.
Validate on the client. (For bandwidth reduction)
Validate at the APP Tier (For security)
Validate at the Data Tier(For security and integrity)
If you accept input from a web page, scrub it, and that doesn't mean stripping brackets or quotes, it means putting in a list of valid characters and tossing or replacing absolutely everything else.
Yes, you might wind up validating something that doesn't need to be validated or scrubbing something that doesn't need to be, the performance hit is worth it.
Also, Stored Procedures are a great resource, if you design them properly you add an extra layer of security that can actually improve your application performance. (All my recent projects have Stored Procedure execute only rights.
If your db code has select * from table in it, you're doing it wrong.
Ok, enough ranting from me.
XSS attempts I've noticed (Score:5, Interesting)
(http://www.trevoroldak.com/)
PayPal had it yesterday (Score:1, Interesting)
XSS is Common Because Our Tools Are Broken (Score:3, Insightful)
(http://happygiraffe.net/blog/)
How many "web" templating systems do you know that automatically escape HTML unless told otherwise? I know of one that can be made to do so: Mason [masonhq.com]. Even then, you have to enable it, as it's not turned on by default.
What about PHP, ASP, JSP and so on? Will they ever grow up and automatically escape HTML by default? I doubt it very much.
In the meantime, there's always mod_security [modsecurity.org] if you're willing to invest the time configuring it. But it's no guarantee...
-Dom
Major vector: $PHP_SELF (Score:2)
(http://henry.simon.net.nz/)
I think this is a major XSS vector, because this is unknown (really now, wouldn't you expect a $_SERVER variable to be safe?)
For example:
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="get">
<input type="text" name="field"
<input type="submit"
</form>
Going to - page.php/"<script>alert('xss');</script> will work quite nicely (note the trailing slash after the page name).
There's a good discussion of it at <URL:http://blog.phpdoc.info/archives/13-guid.htm
They've been around (Score:1)
(http://utubevideos.blogspot.com/)
Any solution (Score:1)
Re:Why? (Score:2, Insightful)
(http://slashdot.org/)
Have you ever read poorly-written, newbish code?
For anything non-trivial, it would probably be quicker and cheaper to have the "pro" write the code in the first place than to pay him for his time to read, understand, and correct a steaming pile of turd spaghetti.
Re:Why? (Score:4, Insightful)
(http://www.faqs.org/rfcs/rfc3675.html)
"Web design" is for aesthetics and graphics people, like "interior design". Of course you run into problems when you have a web designer doing development work!
As for "No web developer has written XSS vulnerable code since 2002", I refer you to The Daily WTF [thedailywtf.com].
Re:FUD (Score:2)
People who only browse trusted sites and are suddenly having their IE installations exploited via those 0-days because somebody used an XSS attack to insert them into those sites.