Where are the greatest Web-related security threats today? Analysis of Web Hacking Incidents Database (WHID) reveals that in 2009 social networks were at the greatest risk, malware and defacement remained the most common outcome of Web attacks, and SQL injection was the most common attack vector. Here’s a deeper dive on the findings and what you can do about them.
Perhaps not surprisingly, analysis of Web hacking incidents reveals that social network sites such as Twitter and Facebook are becoming premier targets for hackers. One in five incidents (19 percent) between January and June 2009 targeted social network sites, making them the most commonly attacked market.
[ InfoWorld's Roger Grimes explains how to stop data leaks in an enlightening 30-minute Webcast, Data Loss Prevention, which covers the tools and techniques used by experienced security pros. ]
Many attacks on social networks involve cross-site scripting (XSS) worms. Additionally, insufficient anti-automation controls permit hackers to brute force attack login credentials. In one incident, an attacker accessed a Twitter Admin account that had a password reset tool and compromised 33 high-profile accounts, including President Obama’s.
Web attacks are driven by crime. Most occur because the hacker wants money, not glory. However, in some instances, the attacks are performed by professionals seeking to advance a cause.
In 2009, defacement of Web sites was still the number one driver for Web hacking (28 percent). Defacement includes visible changes and covert changes, such as the planting of malicious code. Criminals exploit Web application vulnerabilities to plant malware that subsequently infects clients who visit the Web site. The hacked sites become the hacker’s primary method of distributing viruses, Trojans and root kits.
On the other end of the spectrum, ideologists use the Internet to express themselves using Web hacking to deface Web sites. The majority of defacement incidents are of a political nature, targeting political parties, candidates, and government departments, typically with a specific message related to a campaign.
Web defacements are a serious problem and a critical barometer for estimating exploitable vulnerabilities in Web sites. Defacement statistics are valuable since they are one of the few incidents that are publicly facing and thus cannot be easily swept under the rug.
SQL injection tops the attack methods
Attack vectors exploiting Web 2.0 features, such as user-contributed content from social media applications, are also commonly used: Authentication abuse is the second most active attack vector (11 percent), and cross-site request forgery (CSRF) rose to No. 5 (5 percent).
While not a new attack vector, attacks that take advantage of insufficient authentication are increasingly severe due to the proliferation of user-contributed and managed Web sites. This is closely related to CSRF, a vulnerability that was recognized several years ago as a potent attack vector. While it took longer for CSRF to appear than expected, the rise in CSRF incidents is in line with authentication abuse, since it provides an alternative mechanism for performing actions on behalf of a victim.
The trinity of trouble
Regardless of the target, motive, or vector, Web attacks seek to exploit the connectivity, complexity, and extensibility of the Internet. A lack of input validation, poor database configuration, and the priority of new features over security enables hackers to access sensitive information.
The connectivity of the Internet is both a blessing and a curse. HTTP is allowed through virtually every network firewall, opening up the network to external attackers. HTTP is also a very open protocol, which often integrates XML and SOAP inside to help facilitate Web service functions. The explosion of Web 2.0 architectures has shattered the traditional network boundaries, making it even more challenging to secure Web input and output.
Underscoring these issues is the fact that many internal databases are now becoming “Webified” and accessible to external users. Properly configured databases and SQL construction is critical. Developers that are not trained in secure coding put too much trust in user input. It is this lack of input validation that enables mass SQL injection bots to successfully attack databases.
Finally, the extensibility of Web applications leads to greater vulnerabilities since the priority of features usually comes before security. All too often “scope creep” comes into play as new widgets and bells and whistles are added in the middle of the software development life cycle. These additions should require a security review, but this rarely happens. A common complaint heard by Web application security professionals is that implementing security to an application under development is like trying to change a tire on a car that is still moving.
Weathering the attack storm
It is not enough to know about these incidents and risk factors; you must also understand how to protect the integrity of Web applications. If you know a hurricane is approaching, it is irresponsible not to shutter your house. Likewise, if you know Web security incidents are occurring, it is irresponsible not to protect the Web site.
An effective Web security strategy should be able to correlate Web activity to the responsible user, as well as detect abnormal actions. Additionally, poorly coded applications that are not functioning properly or are leaking sensitive information must be identified. Finally, operations, security, and development teams should be able to quickly conduct proper incident response by using operation data to troubleshoot problems and remediate identified vulnerabilities.
Companies with these security strategies can be assured they are running a safe and secure site.
Barnett is a contriutor to Network World, an InfoWorld affiliate, and director of application security research for Breach Security, a SANS Institute faculty member, the OWASP ModSecurity Core Rule Set (CRS) project leader, and a member of the Web Application Security Consortium (WASC), where he leads the Distributed Open Proxy Honeypot Project.
Read more about wide area network in Network World's Wide Area Network section.
This story, "The Web's greatest security threats revealed" was originally published by Network World.