Free Newsletters
Technology & Business Daily

InfoWorld
Log-in | Register
SECURITY ADVISER  

Cross-site scripting



By Mandy Andress
May 03, 2002
 

IN EARLY 2000, CERT issued an advisory regarding a serious issue in many Web applications: CSS (cross-site scripting). (You can read the advisory at http://www.cert.org/advisories/CA-2000-02.html .) CSS is often overlooked as a threat to users and organizations.

Free IT resource

Virtualization Insights from Top Experts - Learn how virtualization gets real!

Sponsored by Dell

Free IT resource

TechNet: More ways to know it, share it, and keep it running.

Sponsored by Microsoft

CSS attacks occur when a user enters malicious data in a Web site. For example, a user can post a message to a newsgroup that contains malicious code. When another person views this message, the browser will interpret the code and execute it, potentially giving the attacker complete control of the system. Malicious scripts can also be executed automatically based on certain events, such as when a picture loads.

These attacks are dangerous and can easily lead to disclosure, modification, or deletion of data. And SSL (Secure Sockets Layer), the current standard in Internet data protection, does nothing to protect against CSS attacks -- all SSL does is encrypt the malicious script on the way to its destination.

The root of the problem lies in a lack of input validation. For CSS to be successful, script tags or some other kind of programming must be accepted as input. At a newsgroup discussing beagles, script tags and programming languages are probably not valid input data -- but they might be valid at a discussion group on VB Script. Application designers need to perform proper input validation checks before allowing a post to go through, such as filtering out script tags or carefully analyzing input data for appropriateness.

I recently came across an excellent Web site that discusses CSS and shows just how widespread the problem is: http://spoor12.edup.tudelft.nl/SkyLined/index.php , a site developed by Berend-Jan Weve, also known as h4x0r.

More and more, instances of CSS issues are being discovered and publicly disclosed. Some of the more recent reports include issues at eBay, Cybercash, and VeriSign. At http://spoor12.edup.tudelft.nl/SkyLined/docs/cross_site_scripting.archive.html , there is a list of sites with CSS flaws, meaning that at least one page has a CSS vulnerability -- a quick glance shows the list is a veritable who's who of the Internet.

The site also discusses how to bypass filters (i.e., sites that do filter script) through embedding and encoding scripts in various tags, URLs, or events. By identifying these runarounds, the page is trying to show that programmers need to address CSS in more detail (if they do so at all). This page is at http://spoor12.edup.tudelft.nl/SkyLined/docs/scriptspoofing_tutorial.html .

Obviously, many organizations are not taking CSS flaws seriously. Those that do need to stay abreast of the new ways attackers embed scripts. Simple filtering of script or other common tags is no longer effective; more detailed filters and built-in application security are needed.

An excellent tool to test Web sites for CSS issues is the newly released Linux-based WhiteHat Arsenal 1.05, available at http://community.whitehatsec.com . Commercial tools are also available, such as AppScan from Sanctum, WebInspect by SPI Dynamics, and ScanDo by KaVaDo.





 


 
Mandy Andress (mandy_andress@infoworld.com) covers security and wireless for the Test Center.
 

TOP NEWS:


»  You don't know tech: The InfoWorld news quiz
Match your weekly tech news wits against our snarky quiz master

»  Spinning off fabs would be risky for AMD, analysts say
AMD has expressed a desire to control chip-manufacturing costs, which has created speculation that the company might sell off its chip fabrication plants

»  Hackers find a new place to hide rootkits
A pair of security researchers has developed a new kind of rootkit, called an SSM, that hides in an obscure part of the processor that is invisible to antivirus apps

»  Top 10: Microsoft-Yahoo, XP SP3 woes, Sprint-Clearwire WiMax deal
This week's roundup of the top tech stories of the week include the demise of the Microsoft-Yahoo deal, Sun's JavaOne announcements, the Intel-OLPC beef, and more

»  Easing network congestion caused by virtual servers
Better I/O capability is an important and often overlooked aspect of getting the most out of server virtualization

»  Sun exec ponders OpenSolaris, Linux
In an interview, Ian Murdock, formerly with the Linux Foundation and now with Sun, discusses the company's open-source efforts and how to monetize them




BRINGING PERFORMANCE VALIDATION "INTO THE LIFECYCLE"
Today's enterprise apps are complex and ever-changing, which makes delivering high performance difficult. By virtualizing the behavior of application services and data in a VSE, teams can answer this challenge with validation best practices and test tools to ensure solid performance throughout the lifecycle. Register now to attend this webcast! Sponsor: ITKO

»  Click here to view this Webcast
  The Data Protection You've Been Looking For
Enterprise data is of supreme importance. If you can't find it quickly, it's worthless. If you lose it, it's a crisis. This IT Strategy Guide explores how to keep your data safe.

»  Click here to download now

- Special Advertising Partners -
WHITE PAPERS
 

» Technology White Papers Library

Technology White Papers by Topic

Technology White Papers E-mail Alert

Find out when the latest white paper is available:
 
 
INFOWORLD MARKETPLACE
 
» BUY A LINK NOW
 

FIND PRODUCTS AND COMPANIES
» COMPLETE PRODUCT GUIDE



TECHNOLOGY INDEX
• Applications
• Application Development
• Security
• Networking
• Wireless
• Platforms
• Hardware
• Data Management
• Storage
• Web Services
• Business
• Telecom
• Professional Services
• Standards

TECH WATCH 


What's the 411 on GOOG-411?
Just as Google has become synonymous with "performing a Web search," 411 is understood to mean "information" -- as in "what's the 411?" I was thus surprised to discover, from a billboard, no less, that the king of search is taking on the ...

Apple HTML source reveals 'iPhone Extreme'
"This one's a stretch..." reports AppleInsider. Um, yeah. Reporting on HTML code sightings of product names could be called a stretch, but iPhone Extreme has a ring to it. Now, that sounds like the product Apple should have released first, rather ...

COLUMNISTS

Unified under law
Ephraim Schwartz's Column and Blog (InfoWorld) - In the litigious world we live in, deploying a unified communications platform in your enterprise could...
» MORE COLUMNISTS

MORE INFOWORLD BLOGS


Open Sources 
Product Management
When I joined MySQL four years ago, there was quite a lot of debate about product management. We didn't actually have ...

Zero Day 
Botnet herders tending smaller flocks
New research backs up the theory that botnet operators are keeping their networks smaller in a continued effort to keep ...



• Advice Line
• Database Underground
• The Deep End
• Enterprise Mac
• Geeks in Paradise
• Grid Meter
• The Gripe Line
• InfoWorld Daily
• Inside IT
• IT Troubleshooter
• ITXtreme
• Open Sources
• ProdBlog
• Real World SOA
• Reality Check
• Security Adviser
• SMB IT
• The Storage Network
• Tech Watch
• Virtualization Report
• Zero Day

ADVERTISEMENT


RESOURCE CENTERadvertisement 

GOVERNMENT IT & POLICY
'If you don't go after the network, you're never going to stop these guys. Never.'
From the State Department, All the News for Inquiring Minds
TechPresident, the Internet Citizenry's New Consensus Taker



Sponsored Technology Links

 
 
 HOME  NEWS  BLOGS  PODCASTS  VIDEOS  TECHNOLOGIES  TEST CENTER  EVENTS  CAREERS  IT EXEC-CONNECT   About | Advertise | Awards | RSS | Contact Us 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy, Terms of Service.
All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses,
phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

CIO :: ComputerWorld :: CSO :: Demo :: GamePro :: Games.net :: IDG Connect :: IDG World Expo
Industry Standard :: IT World :: JavaWorld :: LinuxWorld :: MacUser :: Macworld :: Network World :: PC World :: Playlist