Home > Ask the Information Security Experts > Questions & Answers > Can fuzzing identify cross-site scripting (XSS) vulnerabilities effectively?
Ask The Security UK Expert: Questions & Answers
EMAIL THIS

Can fuzzing identify cross-site scripting (XSS) vulnerabilities effectively?

Ed Skoudis EXPERT RESPONSE FROM: Ed Skoudis

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


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


>
QUESTION POSED ON: 12 September 2007
Is fuzzing an effective tool for spotting cross-site scripting vulnerabilities?

>
EXPERT RESPONSE
In short, yes, it is. For the uninitiated, fuzzing is the process of finding flaws in software by sending it varying input repeatedly, trying to cause the target program to hiccup or crash. For years, researchers have used fuzzers effectively to find buffer-overflow flaws. In such analyses, the researcher can use tools like the free General Purpose Fuzzer or the commercial Mu-4000 fuzzing appliance. To look for an elusive flaw, a fuzzer may send billions of user input variations over the course of several weeks, automating the analysis process. There are a lot of free fuzzers that offer such services.

With regard to cross-site scripting (XSS), a fuzzer can enter various browser scripts into a target Web application, varying the strings, functionality, encoding, size, and other aspects of the user input to see if a target Web application will reflect or store and return the input back to the researcher without any filtering. If the fuzzer's dangerous script does come back unimpeded, the target application is vulnerable to an XSS attack. An attacker can then enter a script into the application and get it to run on users' browsers.

In July 2007, Google publicly announced that it was working on an XSS fuzzer for its own internal use. The project, called Lemon, shows Google's awareness of the cross-site scripting threat and that fuzzers can help find such flaws. A few XSS vulnerabilities have been discovered in Google applications over the past year. Lemon is designed to find the flaws – and have Google fix them -- before attackers can exploit the vulnerabilities. Google has not released Lemon for public use, but its employees have talked publicly about the tool.

Other free, open source tools are starting to tackle the XSS fuzzing issue, including the WebScarab scanning tool from the Open Web Application Security Project (OWASP). The project has a nice write-up about how to use WebScarab as an XSS fuzzer.

Fuzzing is useful, but the testing process can't find all flaws. Fuzzing software tends to be pretty unintelligent; it just shoots a bunch of junk -- carefully selected junk, but junk nonetheless -- at a target hoping to find some weird reaction. The weird reaction, however, may be too subtle for the fuzzer to detect. Also, the input launched by the fuzzer may not cover all of the required technique combinations to trigger a flaw in the target software. Thus, fuzzing is not enough by itself to ensure a program is secure. Fuzzing should be part of a comprehensive software-testing regimen, which includes architecture review, code review and detailed testing.

More information:

  • Author Michael Sutton discusses fuzzing in the enterprise.
  • Will the Sulley framework take fuzzing to the next level? Senior News Writer Bill Brenner talks with the tool's creator.


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


    RELATED CONTENT
    Web Application Security
    Future security threats: Enterprise attacks of 2009
    How to prevent clickjacking attacks with security policy, not technology
    Finjan offers free audits for crimeware sufferers
    Finance sector poor at achieving outsourcing success
    How to prevent SQL Server and Internet Explorer hack attacks
    Web browser exploits explained
    Sophos adds browser and virtualisation blocking features
    Web advertising exploits: Protecting Web browsers and servers
    Hacker toolkit targets Microsoft Access zero-day
    Hackers and phishers see charities as "soft targets"

    Secure Coding
    Cybercrime reports: Security not broken, but breaking at the seams
    Finjan offers free audits for crimeware sufferers
    (ISC)2 targets software developers with secure accreditation
    PGP and IBM kickstart Bletchley Park rescue
    Debian: A niche OS with a not-so-niche security flaw
    Hacker toolkit targets Microsoft Access zero-day
    How can app developers solve a problem like insecure code?
    Coders need to forget 'groovy' features, remember security
    The re-birth of the metamorphic virus
    Enterprise security in 2008: Building trust into the application development process

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    Serious Organized Crime Agency  (SearchSecurityUK.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

    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    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  |  Site Map




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