Web Application Security
Web Application Security
Table of Contents
I. Summary 2
V. About Qualys 8
Web Application Security: How to Minimize Prevalent Risks of Attack page 2
Summary
Vulnerabilities in web applications are now the largest vector of enterprise security
attacks. Last year, almost 55% of vulnerability disclosures affected web applications.1
At year end, 74% of web application vulnerabilities had no available patch for
remediation, according to that report. Stories about exploits that compromise
sensitive data frequently mention culprits such as “cross-site scripting,” “SQL
injection,” and “buffer overflow.” Vulnerabilities like these fall often outside the
traditional expertise of network security managers. The relative obscurity of web
application vulnerabilities thus makes them useful for attacks. As many organizations
have discovered, these attacks will evade traditional enterprise network defenses
unless you take new precautions. To help you understand how to minimize these
risks, Qualys provides this guide as a primer to web application security. The guide
surveys typical web application vulnerabilities, compares options for detection, and
introduces the QualysGuard Web Application Scanning solution – a new on demand
service from Qualys that automates detection of the most prevalent vulnerabilities
in custom web applications.
http://example/foo.cgi?a=1
http://example/foo.cgi?a=1’ < SQL Injection
http://example/foo.cgi?a=<script> … < Cross-site Scripting (XSS)
Some attacks attempt to alter logical workflow. Attackers also execute these by
automatically varying a URI.
http://example/foo.cgi?admin=false
http://example/foo.cgi?admin=true < Increase privileges
These vulnerabilities can be complex and may occur under many circumstances.
Using a web application firewall might control effects of some exploits but will not
“ Enterprise-class web application
scanning solutions are broader, and
should include a wide range of tests
resolve the underlying vulnerabilities.
for major web application vulnerability
classes, such as SQL injection,
Types of Web Application Vulnerabilities cross-site scripting, and directory
traversals. The OWASP Top 10 is a
Web applications may have any of two dozen types of vulnerabilities. Security
good starting list of major vulnerabil-
consultants who do penetration testing may focus on finding top vulnerabilities, ities, but an enterprise class solution
such as those in a list published by the Open Web Application Security Project shouldn’t limit itself to just one list or
(www.owasp.org). Other efforts to systematically organize web application category of vulnerabilities. An enter-
vulnerabilities include six categories published by the Web Application Security prise solution should also be capable
of scanning multiple applications,
Consortium (www.webappsec.org). The following descriptions of web vulnerabilities
tracking results over time, providing
are modeled on the WASC schema.
robust reporting (especially compli-
ance reports), and providing reports
n Insufficient Authentication permits an attacker to access sensitive
content or functionality without proper authentication.
n Cross-site Scripting (XSS) forces a web site to echo attacker-supplied executable code, which loads into a
user’s browser.
n Format String Attack alters the flow of an application by using string formatting library features to access other
memory space.
n LDAP Injection attacks exploit web sites by constructing LDAP statements from user-supplied input.
n OS Commanding executes operating system commands on a web site by manipulating application input.
n SQL Injection constructs illegal SQL statements on a web site application from user-supplied input.
n SSI Injection (also called Server-side Include) sends code into a web application, which is later executed locally
by the web server.
n Information Leakage occurs when a web site reveals sensitive data such as developer comments or error
messages, which may aid an attacker in exploiting the system.
n Path Traversal forces access to files, directories and commands that potentially reside outside the web
document root directory.
n Predictable Resource Location uncovers hidden web site content and functionality.
Web Application Security: How to Minimize Prevalent Risks of Attack page 5
n Insufficient Process Validation permits an attacker to bypass or
circumvent the intended flow of an application.
A scanner does not have access to a web application’s source code, so the only
way it can detect vulnerabilities is by performing likely attacks on the target
application. Time required for scanning varies, but doing a broad simulated attack
on an application takes significantly longer than doing a network vulnerability scan
against a single IP. A major requirement for a web application vulnerability scanner
is comprehensive coverage of the target application’s functionality. Incomplete
coverage will cause the scanner to overlook existing vulnerabilities.
Web Application Security: How to Minimize Prevalent Risks of Attack page 6
Key Benefits. WAS automates repeatable techniques used to identify the most
prevalent web vulnerabilities, such as SQL injection and cross-site scripting. It
combines pattern recognition and observed behaviors to accurately identify and
verify vulnerabilities. The WAS service identifies and profiles login forms, session
state, error pages, and other customized features of the target application – even if
it extends across multiple web sites. This site profile data helps WAS to adapt to
changes as the web application matures. Adaptability enables the scanner to be
used against unknown or legacy web applications that may carry little information
about error pages or other behavior. As a result, WAS delivers highly accurate
detection and reduces false positives. The automated nature of Web Application
Scanning enables regular testing that produces consistent results and easily scales
for large numbers of web sites.
Crawling & Link Embedded web crawler parses HTML and some
Discovery JavaScript to extract links. Automatically balances
breadth and depth of discovered links to crawl up to
5,000 links per web application.
White List Instructs the crawler to only visit links explicitly defined
in this list.
Reports such as the Web Application Scorecard provide big-picture and drill-down
visibility on vulnerabilities for each web application
Finally, with QualysGuard WAS, at least one person in your organization must be
responsible for managing remediation of vulnerabilities found in your web applications.
QualysGuard WAS trials are available now. General public release is scheduled for
April 2009. If you would like a free trial of the QualysGuard WAS, please contact
Qualys to get started.
About Qualys
Qualys, Inc. is the leading provider of on demand IT security risk and compliance
management solutions – delivered as a service. Qualys’ Software-as-a-Service
solutions are deployed in a matter of hours anywhere in the world, providing
customers an immediate and continuous view of their security and compliance
postures. The QualysGuard® service is used today by more than 3,500 organizations
in 85 countries, including 40 of the Fortune Global 100 and performs more than
200 million IP audits per year. Qualys has the largest vulnerability management
deployment in the world at a Fortune Global 50 company. Qualys has established
strategic agreements with leading managed service providers and consulting
organizations including BT, Etisalat, Fujitsu, IBM, I(TS)2, LAC, SecureWorks,
Symantec, Tata Communications, TELUS and VeriSign.
USA – Qualys, Inc. • 1600 Bridge Parkway, Redwood Shores, CA 94065 • T: 1 (650) 801 6100 • [email protected]
UK – Qualys, Ltd. • 224 Berwick Avenue, Slough, Berkshire, SL1 4QT • T: +44 (0) 1753 872101
Germany – Qualys GmbH • München Airport, Terminalstrasse Mitte 18, 85356 München • T: +49 (0) 89 97007 146
France – Qualys Technologies • Maison de la Défense, 7 Place de la Défense, 92400 Courbevoie • T: +33 (0) 1 41 97 35 70
Japan – Qualys Japan K.K. • Pacific Century Place 8F, 1-11-1 Marunouchi, Chiyoda-ku, 100-6208 Tokyo • T: +81 3 6860 8296
United Arab Emirates – Qualys FZE • P.O Box 10559, Ras Al Khaimah, United Arab Emirates • T: +971 7 204 1225
www.qualys.com China – Qualys Hong Kong Ltd. • Suite 1901, Tower B, TYG Center, C2 North Rd, East Third Ring Rd, Chaoyang District, Beijing • T: +86 10 84417495
© Qualys, the Qualys logo and QualysGuard are registered trademarks of Qualys, Inc. All other trademarks are the property of their respective owners. 03/09