Web server weaknesses you don't want to overlook

Web server weaknesses you don't want to overlook

Security issues associated with Web applications are pretty cut and dried. In fact, if you focus solely on login mechanism and input validation flaws you can eliminate the majority of weaknesses in any given application. Add to that some tightening down of the application's logic and you'll have one of the more secure Web applications out there.

But what about the server your application is running on? Have you tested it using good vulnerability scanners to see how the Web server, OS and related software stand up to abuse? If you've only focused on the application layer and trusted the security of the server to someone else (i.e. your network admin or your hosting provider) you might be surprised to find out there's a shaky foundation underneath.

In my work performing Web application penetration tests and vulnerability assessments I see consistent issues at the server level that usually make up 25% or more of the overall findings. Many weaknesses I find are considered "medium" and "high" priority. Here are common weaknesses I find in Web servers that can lead to problems such as unauthorized file disclosures, denial of service, or worse, full remote access to the system using an exploit tool such as Metasploit:

  1. Outdated versions of Web server software (especially common with Apache). What can happen? Denial of service, remote command prompt access, authentication bypass, and more.

  2. Outdated versions of security technologies such as OpenSSL and

    Requires Free Membership to View

    When you register, you'll receive targeted emails designed to keep you informed of the most relevant information on Agile development, application security, testing & QA, software requirements, and more.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSoftwareQuality.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 SearchSoftwareQuality.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

  1. OpenSSH that have known exploits. What can happen? Denial of service and remote command prompt access.

  2. Vulnerable Web server technologies such as PHP, WebDav, and ColdFusion. What can happen? Denial of service, remote command prompt access, authentication bypass, directory enumeration, and local file access.

  3. Open ports providing access to services such as DNS, FTP, and Windows Terminal Services. What can happen? System enumeration, password cracking, remote command prompt access, and other unauthorized remote access.

  4. Unnecessary HTTP methods enabled such as CONNECT, DELETE, and PUT. What can happen? Web service enumeration, unauthorized HTTP proxying, file addition and deletion, and more.

  5. Open HTTP proxies. What can happen? Unauthorized HTTP proxying and system overload leading to denial of service.

  6. Web server misconfigurations that divulge the system's internal IP address. What can happen? System enumeration and mapping of the internal network for future exploitation.

  7. Weak directory permissions. What can happen? Authentication bypass, directory enumeration, and local file access.

  8. Weak encryption configurations such as SSL version 2 and low encryption ciphers. What can happen? Interception and subsequent cracking of the encrypted communications stream.

  9. Lack of protection against malware uploaded to the server via Web application forms. What can happen? Malware uploads and subsequent infections.

The first four items in the list can have the greatest impact on your Web systems and, interestingly, they're the ones I see the most in my work. Regardless, all of these server-level issues are often taken for granted but with enough time are sure to knock the legs out from underneath an otherwise secure Web application.

The key is to never assume that looking at layer 7 alone will be enough. A proven way to ensure you're looking at everything that counts in your Web environment is to use vulnerability scanners that perform server side checks. I've had good results using the QualysGuard vulnerability scanner over the years. Also, Acunetix has recently integrated some of these checks in their Acunetix Web Vulnerbility Scanner product which can be a valuable addition to its application checks. Such scanners will find the issues listed above and more. When looking for tools to perform server-side vulnerability checks you'll want port scanning, system enumeration, and exploitation (or at least data extraction) capabilities. The specific scanner you end up with doesn't matter as much as how often its vulnerability database is updated, how comfortable you feel using the tools, and the responsiveness of the vendor.

Do yourself and your business a favor and not only look at your Web applications but also what they're riding on. It's surprising just how vulnerable any given Web system can be made by a few underlying server issues. It'll require minimal additional effort and there's nothing to lose.

This was first published in December 2009

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.