What is Cross Site Scripting?

cross site scriptingThough less common than in the past cross-site scripting is still the most common publicly reported web vulnerability and a threat to surfers.  Cross-site scripting attacks are used to steal information from your browser when you visit websites such as ecommerce stores, forums, and even your email accounts.

The insidious nature of cross-site scripting or XSS comes from how the attack occurs.  The website you are visiting is actually used by hackers to attack visitors.  The malicious code that steals your data is presented in the form of simple links, online forms that you fill out, or just visiting by infected sites.

XSS doesn’t look suspicious to the naked eye because of the variety of methods available to present the malicious attack to users.  Common XSS delivery types include:

  • JavaScript
  • VBScript
  • ActiveX
  • Flash
  • Even HTML!

Each of these types of software code is essential to building websites and perform numerous functions to ensure proper functionality.  Attackers search for vulnerable websites and applications to fool users in order to gather confidential data from them. Using XSS fraud, everything from account hijacking, identity theft, changing user settings, redirecting the browser to a different location, or showing fraudulent content delivered by the website being visited is possible.

Attacker’s favorite targets include message board posts, instant messages, and web chat software. Sometimes the unsuspecting user is not required to interact with any additional site or link; just simply viewing the web page containing the malicious code can delivery the payload.

Some ways to protect yourself from Cross Site Scripting attacks are to only follow links from the main website that you wish to visit. Avoid clicking on unsolicited links and hyperlinks even if they look innocent. For instance, if you come across a link that says that it will re-direct you to CNN’s website, instead of clicking on that link, type CNN’s URL into the browser and visit the website on your own. In addition, be sure to keep your plug-ins, such as your Flash Player, and Java up-to-date.

XSS can be executed automatically when you open an email or email attachment, or when you read a guestbook or bulletin board post. If you plan on opening an email or read a post on a public board from a person you don’t know BE CAREFUL. One of the best ways to protect yourself is to turn off JavaScript in your browser’s settings. In Internet Explorer, turn your security settings to high.

It is tough to avoid XSS holes; they have plagued even the most credible websites. Some of the websites that have been infected include:

  • FBI.gov
  • CNN.com
  • Time.com
  • Ebay.com
  • Yahoo
  • Apple
  • Microsoft
  • MySpace
  • Wired.com

What precautions do you take against cross-site scripting attacks? Leave a comment below.

Sources:

  1. http://en.wikipedia.org/wiki/Cross-site_scripting
  2. http://projects.webappsec.org/Cross-Site+Scripting
  3. http://docs.google.com/View?docid=ajfxntc4dmsq_14dt57ssdw
  4. http://www.cgisecurity.com/xss-faq.html


Bookmark and Share

This entry was posted on Thursday, March 11th, 2010 at 11:55 am and is filed under Attacks, Computer Security, Malware. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

4 Responses to “What is Cross Site Scripting?”

  1. Madelaine Estis Says:

    How often do you write your blogs? I enjoy them a lot.

  2. admin Says:

    We write new posts a couple of times a week or more when the muses inspires us. -365

  3. Large Plastic Storage Boxes Says:

    Can you provide more information on this? sincerely

  4. admin Says:

    There is a lot of information to cover on XSS, given that it is such a prevalent vulnerability on websites.
    We will definitely delve deeper in the future and have provided reference links at the end of the post for further reading. -365

Leave a Reply