Application Security
5/15/2013
01:45 AM
50%
50%

Web Application Testing Using Real-World Attacks

Using exploits to test Web applications can be an enlightening way to test for vulnerabilities, but there are downsides as well

Vulnerability management and scanning systems typically combine a number of techniques to assess the risk faced by a business' information technology, from scanning files and evaluating the current patch level to launching attacks and testing for practical vulnerabilities.

While assessing patch level tends to be the most reliable way to check for vulnerable code, there are times when real-world exploits are needed. In cases where the patch has not been correctly applied, or when there is no patch, the best way to check for the vulnerability is to actually probe the application. Custom Web applications, for example, will generally not be able to be assessed using a patch-level check, says Ross Barrett, senior manager for security engineering at Rapid7, a vulnerability management firm.

"If a company has in-house Web apps, that is where you are going to get a lot of value out of that approach," he says. "The real-world attacks can be replayed and give you results."

Using actual exploits to test for vulnerabilities is an old technique that turns a vulnerability scan into an automated penetration test rather than a catalog of the system's patch level. Exploitation, however, can result in system instability, a danger that causes many companies to be wary of active probes of their networks or Internet applications, says Lamar Bailey, director of security research for risk-management firm nCircle, now owned by Tripwire.

"It's tricky to use real exploits because you have to neuter them," Bailey says. "We got a lot of pushback from customers -- they would not run a lot of the tests -- because they did not want production servers to go down."

[Fear of business disruption and downtime often leaves enterprises hesitant to scan the critical applications that hackers are most likely to target in their quest for exploitable vulnerabilities. See Too Scared To Scan.]

Moreover, exploits are not 100 percent reliable, he says. With current anti-exploitation techniques -- such as address layout randomization and data-execution protection -- success in forcing exploit writers to track complex system states tends not to be a given, Bailey says.

"The fact that you could not get into the box does not mean that the box is not vulnerable," he says.

Web applications are a good match for exploit-based scanning because applications that continually deal with the Internet tend to be more robust, Bailey says. In addition, many of the types of attacks that threaten Web applications, such as cross-site scripting and SQL injection, are at low risk of causing downtime.

"As long as you don't crash anything and you tell the company what changes you made, many of them will let you use active techniques against a Web application," Bailey says. Using actual attack intelligence can help direct vulnerability testing as well. By looking at incoming attacks, security teams can replicate them and discover whether the business' systems are vulnerable to exploits. By automating the exploitation process, a company can turn attack research into defense, says Jason Schmitt, director of product management for Hewlett-Packard's Fortify business unit.

"The automation is about capturing the security-research expertise to give our customers a current perspective on the types of threats out there," he says.

The reverse works as well, Rapid7's Barrett says.

"There is a lot of noise to filter through," he says. "So tying the attack traffic into your vulnerability situation can tell you what you are actually vulnerable to, and that's hugely valuable."

Have a comment on this story? Please click "Add Your Comment" below. If you'd like to contact Dark Reading's editors directly, send us a message. Robert Lemos is a veteran technology journalist of more than 16 years and a former research engineer, writing articles that have appeared in Business Week, CIO Magazine, CNET News.com, Computing Japan, CSO Magazine, Dark Reading, eWEEK, InfoWorld, MIT's Technology Review, ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
AccessServices
50%
50%
AccessServices,
User Rank: Apprentice
5/16/2013 | 1:32:45 PM
re: Web Application Testing Using Real-World Attacks
I agree with Barry if the company has a good SDLC. One could also use copies of production virtual servers to create a test environment with a sample database if the company did not send everything through QA.
Barry Shteiman
50%
50%
Barry Shteiman,
User Rank: Apprentice
5/15/2013 | 5:55:48 PM
re: Web Application Testing Using Real-World Attacks
A good portion of the larger enterprises and the government agencies of the world, have staging and production-like sites that allow them to test for things like system load and version control, that is where testing of this kind might be effective if performed under a monitored environment.

Having security controls in staging environments is key to large scale release management making sure that the controls put in place are effectively doing what they are meant to.
Register for Dark Reading Newsletters
White Papers
Cartoon
Current Issue
Dark Reading December Tech Digest
Experts weigh in on the pros and cons of end-user security training.
Flash Poll
DevOps’ Impact on Application Security
DevOps’ Impact on Application Security
Managing the interdependency between software and infrastructure is a thorny challenge. Often, it’s a “developers are from Mars, systems engineers are from Venus” situation.
Video
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2014-5395
Published: 2014-11-21
Multiple cross-site request forgery (CSRF) vulnerabilities in Huawei HiLink E3276 and E3236 TCPU before V200R002B470D13SP00C00 and WebUI before V100R007B100D03SP01C03, E5180s-22 before 21.270.21.00.00, and E586Bs-2 before 21.322.10.00.889 allow remote attackers to hijack the authentication of users ...

CVE-2014-7137
Published: 2014-11-21
Multiple SQL injection vulnerabilities in Dolibarr ERP/CRM before 3.6.1 allow remote authenticated users to execute arbitrary SQL commands via the (1) contactid parameter in an addcontact action, (2) ligne parameter in a swapstatut action, or (3) project_ref parameter to projet/tasks/contact.php; (4...

CVE-2014-7871
Published: 2014-11-21
SQL injection vulnerability in Open-Xchange (OX) AppSuite before 7.4.2-rev36 and 7.6.x before 7.6.0-rev23 allows remote authenticated users to execute arbitrary SQL commands via a crafted jslob API call.

CVE-2014-8090
Published: 2014-11-21
The REXML parser in Ruby 1.9.x before 1.9.3 patchlevel 551, 2.0.x before 2.0.0 patchlevel 598, and 2.1.x before 2.1.5 allows remote attackers to cause a denial of service (CPU and memory consumption) a crafted XML document containing an empty string in an entity that is used in a large number of nes...

CVE-2014-8469
Published: 2014-11-21
Cross-site scripting (XSS) vulnerability in Guests/Boots in AdminCP in Moxi9 PHPFox before 4 Beta allows remote attackers to inject arbitrary web script or HTML via the User-Agent header.

Best of the Web
Dark Reading Radio
Archived Dark Reading Radio
Now that the holiday season is about to begin both online and in stores, will this be yet another season of nonstop gifting to cybercriminals?