Risk

5/13/2009
03:24 PM
Connect Directly
Google+
Twitter
RSS
E-Mail
50%
50%

Researchers Hack Web Application Firewalls

OWASP Europe presentation demonstrates tools that fingerprint the brand of WAF, as well as bypass it altogether

A pair of researchers at the OWASP Europe 2009 conference on Wednesday showed how some Web application firewalls (WAFs) are prone to attack.

Wendel Henrique, a member of SpiderLabs (Trustwave's advanced security team), and Sandro Gauci, founder and CSO for EnableSecurity, also found some WAFs vulnerable to the same types of exploits they are supposed to protect Web apps from, such as cross-site scripting (XSS) attacks.

The researchers used a tool they developed, called WafW00f, to detect and fingerprint the presence -- and in some cases, the brand -- of a WAF running in front of a Web application. A second tool created by Henrique and Gauci, called WafFun, let them exploit and bypass WAFs running in blacklisting and whitelisting modes. With a combination of WafW00f and WafFun, the researchers are able to execute attacks on the WAF invisibly so they can successfully hack the Web-facing application sitting behind it.

"If an attacker knows what product and version, it's easy to exploit it. One of the things [WAF] vendors claim is that they [operate] in stealth [mode]," Henrique says. "But in practice, they have a lot of different behaviors that they create...and you can use those behaviors to identify what WAF is in place."

Other researchers previously have demonstrated fingerprinting and bypassing intrusion-detection systems/intrusion-prevention systems, as well as how signature-based WAFs are susceptible to SQL injection attacks.

Mark Kraynak, vice president of marketing for Imperva, says Henrique and Gauci's research is not all that new, including their work on signature evasion, which Imperva has researched. "A lot of what they are saying is not new," he says. "Part of the founding premise of why you need a WAF versus a signature engine...is that you can evade a weak signature engine."

Products that use only signatures -- without other features like normalization and encoding/decoding -- are not true WAFs, he says. "Signature-only WAFs are not going to do it," he says.

Meanwhile, Henrique says he and Gauci are working with several WAF vendors to fix vulnerabilities in their products, including Armorlogic, which has since patched for its WAF bug. They also will release WafW00F, which detects more than 20 different WAFs, by Friday, and WafFun within two weeks.

"A WAF can help, for sure," Henrique says. But even more importantly, he says, organizations must protect their Web apps by writing better code and regularly testing their applications. "Training developers, doing code certification review, and testing Web apps are much more useful," he says. "The problem is we found so many WAF products have really bad design flaws that allowed us to directly compromise [them]."

And while adding a whitelisting Web traffic is a stronger model than a blacklist/signature-only approach, he says, it's not necessarily realistic for large Websites. "It's not easy to put in place a WAF with a positive [whitelisting] model at a company with huge Websites," he says. "In general, companies will use a negative [blacklisting] model," which can leave their WAF open to attack.

Have a comment on this story? Please click "Discuss" below. If you'd like to contact Dark Reading's editors directly, send us a message. Kelly Jackson Higgins is Executive Editor at DarkReading.com. She is an award-winning veteran technology and business journalist with more than two decades of experience in reporting and editing for various publications, including Network Computing, Secure Enterprise ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Microsoft President: Governments Must Cooperate on Cybersecurity
Kelly Sheridan, Staff Editor, Dark Reading,  11/8/2018
Why the CISSP Remains Relevant to Cybersecurity After 28 Years
Steven Paul Romero, SANS Instructor and Sr. SCADA Network Engineer, Chevron,  11/6/2018
5 Reasons Why Threat Intelligence Doesn't Work
Jonathan Zhang, CEO/Founder of WhoisXML API and TIP,  11/7/2018
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
Flash Poll
Online Malware and Threats: A Profile of Today's Security Posture
Online Malware and Threats: A Profile of Today's Security Posture
This report offers insight on how security professionals plan to invest in cybersecurity, and how they are prioritizing their resources. Find out what your peers have planned today!
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2018-19220
PUBLISHED: 2018-11-12
An issue was discovered in LAOBANCMS 2.0. It allows remote attackers to execute arbitrary PHP code via the host parameter to the install/ URI.
CVE-2018-19221
PUBLISHED: 2018-11-12
An issue was discovered in LAOBANCMS 2.0. It allows SQL Injection via the admin/login.php guanliyuan parameter.
CVE-2018-19222
PUBLISHED: 2018-11-12
An issue was discovered in LAOBANCMS 2.0. It allows a /install/mysql_hy.php?riqi=0&i=0 attack to reset the admin password, even if install.txt exists.
CVE-2018-19223
PUBLISHED: 2018-11-12
An issue was discovered in LAOBANCMS 2.0. It allows XSS via the first input field to the admin/type.php?id=1 URI.
CVE-2018-19224
PUBLISHED: 2018-11-12
An issue was discovered in LAOBANCMS 2.0. /admin/login.php allows spoofing of the id and guanliyuan cookies.