Home > Ask the Security Experts > Information Security Threats Questions & Answers > What new tactics can prevent cross-site scripting attacks?
Ask The Security Expert: Questions & Answers
EMAIL THIS

What new tactics can prevent cross-site scripting attacks?

Ed Skoudis EXPERT RESPONSE FROM: Ed Skoudis

Pose a Question
Other Security Categories
Meet all Security Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 25 October 2006
I've heard that cross-site scripting (XSS) is now the top security risk. Are there any new tactics that enterprise security professionals can use to protect against it?

>
EXPERT RESPONSE
Cross-site scripting attacks (abbreviated XSS so that we don't confuse them with cascading style sheets) are one of today's major attack vectors. These attacks exploit vulnerable Web sites that take input from a user and reflect the data right back at the browser. XSS attacks occur when a bad guy runs a malicious browser script inside of other users' browsers. The attacker can then steal cookies -- or even use a vulnerable ecommerce site -- to make the browser engage in transactions as if it were the victim's browser . In our penetration testing work at Intelguardians, approximately 80% of the Web applications we test have XSS flaws.

Enterprises can defend against XSS flaws by carefully filtering user input and output to remove the characters that are associated with scripts, including =<>'"();&. In the past, most organizations focused on controlling and filtering only the input. Certainly, that's a good idea. Still, an attacker could infiltrate an application via an unguarded input stream. Some enticing targets include magnetic stripes, Electronic Data Interchange feeds and paper-based postal mail that gets scanned in and converted via OCR. If Web applications start sending an attacker's malicious browser script, users are in jeopardy. To avoid this, filter the application output for malicious scripts as well. Of course, you should also filter for any legitimate browser scripts that are used and allow them to be sent to browsers. Certain data-pulling functions, however, should never have browser scripts. In these cases, filters should be applied before the final pages are composed and sent back to the browser.

More information:

  • Learn more about how to deal with cross-site scripting.
  • Prevent input validation attacks.

  • Sound Off! -   Be the first to post a message to Sound Off!


    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


    RELATED CONTENT
    Information Security Threats
    What are the dangers of cross-site request forgery attacks (CSRF)?
    Should social engineering tests be included in penetration testing?
    What kind of data is compromised during a Google hack?
    Best practices for using restriction policy whitelists
    Defining mobile device security concerns
    What security measures can be taken to stop crimeware kits?
    What software development best practices can prevent input validation attacks?
    What is the most secure way for application developers to manage cookies?
    Is there a market for standalone antivirus products?
    Can 'herd intelligence' effectively stop malware?

    Application Attacks (Buffer Overflows, Cross-Site Scripting)
    Tips for SQL injection protection
    Microsoft addresses XSS in Internet Explorer
    Internet Explorer open to spoofing, scripting attacks
    Software still plagued with security holes, researcher says
    Microsoft tools won't be quick fix for SQL injection attacks
    Microsoft identifies tools to address SQL injection attacks
    New defenses for automated SQL injection attacks
    Alarming SQL injection attacks
    Adobe Flash Player flaw previously patched, Symantec says
    Adobe zero day flaw being actively exploited in wild
    Application Attacks (Buffer Overflows, Cross-Site Scripting) Research

    Web Application Security (Also see Web Access Control)
    Microsoft tools won't be quick fix for SQL injection attacks
    New defenses for automated SQL injection attacks
    HP aims at IBM with application vulnerability scanning as service
    Information security book excerpts and reviews
    Kaminsky on DNS rebinding attacks, hacking techniques
    Webmail security: Best practices for data protection
    Tracing malware's steps with RE:Trace
    SQL injection attack infects hundreds of thousands of websites
    PCI Council issues clarification on Web application security
    Web security gateways keep Web-based malware at bay

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    cache poisoning  (SearchSecurity.com)
    cyberterrorism  (SearchSecurity.com)
    dictionary attack  (SearchSecurity.com)
    directory harvest attack  (SearchSecurity.com)
    distributed denial-of-service attack  (SearchSecurity.com)
    JavaScript hijacking  (SearchSecurity.com)
    ping of death  (SearchSecurity.com)
    script kiddy  (SearchSecurity.com)
    stack smashing  (SearchSecurity.com)
    SYN flooding  (SearchSecurity.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary



    Search and Browse the Expert Answer Center
    Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
    Browse our Expert Advice

    TechTarget Security Media
    Information Security View this month\\'s issue and subscribe today.
    Information Security Decisions Apply online for free conference admission.
    SearchSecurity.com
    HomeNewsMagazineWebcastsWhite PapersLearningAdviceTopicsEventsAbout Us

    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




    All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts