What can encoded syntax attacks do to Web applications?

What can encoded syntax attacks do to Web applications?

What are encoded syntax attacks, and what can they do to Web applications?

    Requires Free Membership to View

    SearchSecurity.com members gain immediate and unlimited access to breaking industry news, virus alerts, new hacker threats, highly focused security newsletters, and more -- all at no cost. Join me on SearchSecurity.com today!

    Michael S. Mimoso, Editorial Director

    By submitting your registration information to SearchSecurity.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSecurity.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Most Web servers and browsers have the ability to process requests in a variety of different formats, and the goal of encoded syntax attacks is to bypass detection. For example, a simple cross-site scripting (XSS) attack can be fixed with a variety of different character-encoding sets, including Unicode, UTF-8 and Hex. The problem is that many IDS/IPS products are signature-based and look for a specific attack string. Therefore, intrusion detection and prevention tools may not be able to catch an attacker that encodes a malicious request.

Organizations should test their Web servers to ensure that they are not vulnerable to encoded syntax attacks. To do so, I recommend tools like Nikto. The server-assessment tool utilizes a variety of different encoding techniques, and can even use multiple types of evasion tactics together. Nikto will request pages in a various ways that your server will understand but may be difficult for us to read. Many servers, for example, can process requests in Unicode and Base64, which are languages not easily deciphered by many people.

Also, look at ModSecurity, an open source Web application firewall and UrlScan, a security tool that restricts the types of HTTP requests that Internet Information Services (IIS) will process. These tools have the ability to detect and/or stop some of the most common encoded attacks like SQL injection, cross-site scripting and requests for pages on your site that may have vulnerabilities like buffer overflows. There are also a number of commercial products that can help defend against encoded syntax attacks, including those from F5 Networks Inc., Breach Security Inc., and Barracuda Networks Inc.

For more information:

  • Learn how to protect and harden a database server.
  • See how ModSecurity is getting an 'attitude adjustment.'
  • This was first published in January 2009