| By Ryan Sherstobitoff | Article Rating: |
|
| July 11, 2008 10:45 AM EDT | Reads: |
3,877 |
SQL injection attacks are evolving as one of the primary modes of transportation for malicious scripts that hackers insert into legitimate websites. According to recent events, this method is becoming very popular among the hacker elite, especially considering the number of sites they are able to exploit almost overnight. Some of these victim sites include the United Nations and the Department of Homeland Security (DHS).[1] Typically they will use the website as a vehicle for distributing Trojans through encoded JavaScript that a SQL injection inserted into the website.
The scary part is that the average rate of infection among “protected” networks is anywhere from 70–75% according to research conducted by PandaLabs on over 1,200 networks across the globe.[2] This study was conducted with www.infectedornot.com and www.malwareradar.com during a two-month time span as part of an ongoing study into criminal prevalence on the Internet. These statistics were derived from PCs that had up-to-date anti-virus software, but were still being infected with malware known by the industry.
What mystifies researchers is how criminals are gaining access to websites without administrative privileges or exploiting specific server-side vulnerabilities. Hackers have discovered a generic SQL string capable of inserting malicious scripts in hundreds of thousands of sites in a short period of time, in a matter of hours in some cases. Hackers use this string to embed JavaScript code generically into hundreds of thousands of websites. The key is to find a string generic enough, but effective 80–90% of the time, to take advantage of web coding vulnerabilities.
Websites that fall victim to these attacks are sites that you normally wouldn’t expect to host malicious scripts, for example, www.flowers.com, www.dhs.gov, and www.un.org. These highly popular sites allow hackers to victimize as many visitors as possible; if profit is the true motivation, it’s a perfect breeding ground for criminal activity.
The encoded JavaScript embedded in the victim web pages consists of a delivery mechanism to infect visitors with Trojans. However, the malware itself is not embedded, but rather hosted elsewhere and in some cases will use server-side polymorphism to randomly change binaries dynamically. For the malware to be properly executed in a different context on the visitor’s PC, the script contains instructions to determine if the PC can be exploited by running a check against a number of common vulnerabilities. In addition, some of these attacks take advantage of zero-day vulnerabilities to spread malware to unsuspecting users as was the case with the recent Adobe Flash exposure.[3]
The JavaScript code being used to exploit the vulnerability uses obfuscation and encoding techniques, making it very difficult to analyze (e.g., using hexadecimal encoding to hide actual Java code 65%3D%22%6A%61%76%). Thus, the true intention behind the script (exploitation of vulnerabilities) cannot be seen by simply viewing the .JS file. It takes clever decoding to reveal the presence of actual exploit code and subsequently create a defense mechanism against it.
The net effect is extra time and effort on the part of the anti-virus lab engineer to create an effective vaccination for malware delivered through encoded JavaScript. It’s fairly easy for the hacker to change the payload delivered via these scripts as the malware resides on a completely different server and it would not surprise us if the binaries were programmed to change frequently.
Some recent hacking campaigns have shown that between 250,000 and 500,000 sites can be generically compromised almost overnight without much effort.[4] For instance, attackers are using tools that incorporate the Google API framework to automate the discovery and validation of target sites, which in normal circumstances would be conducted manually on a per-site basis.
Using Google these tools perform a diversified search against a vast population of websites looking for sites that do not properly sanitize their inputs or that may contain other generic web coding vulnerabilities.
Hackers can now reach out and touch anyone despite high levels of protection that consumers and businesses have installed on their networks and PCs. SQL attacks are becoming more prevalent with the anonymity that the Internet affords the attackers, making it harder and harder for them to be caught. Your best bet is to ensure that your network and systems are frequently monitored to avoid being compromised by hackers.
References
- Goodin, Dan. “Department of Homeland Security website hacked!” The Register.
- Bustamente, Pedro. “Think you're protected? Think again.” Panda Research Blog.
- Maone, Giorgio. “Unpatched Flash Vulnerability Widely Exploited in the Wild.” http://hackademix.net.
- SC Magazine Podcast on Massive SQL Injection Attack.
Published July 11, 2008 Reads 3,877
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Ryan Sherstobitoff
Ryan Sherstobitoff is the Chief Corporate Evangelist at Panda Security USA (www.pandasecurity.com). He is widely recognized as a security expert throughout the country and lectures audiences across the U.S. on cybercrime trends as well as corporate risk assessments. He can be reached at ryans@us.pandasecurity.com or through the PandaLabs blog at http://pandalabs.pandasecurity.com/.
- Scott Brown to Win Senate Race by a Landslide
- The Next-Generation of Business Intelligence
- BEA Updates WebLogic SOA Portal for Web 2.0 Era
- View Cloud Expo Europe 2009 Keynote on SYS-CON.TV
- Virtualization Expo New York Call for Papers to Expire January 15, 2010
- Cloud Expo New York Call for Papers to Expire January 15, 2010
- Six Enterprise Megatrends to Watch in 2010
- Cloud Expo Europe 2009: Where Are Europe's Cloud Providers?
- Five Gadgets That I Can’t Wait to See in 2010
- Adobe Fiddles with its Web Apps
- Top Ten Benefits of CRM
- Government Social Media & Cloud Computing
- Kindle 2 vs Nook
- Scott Brown to Win Senate Race by a Landslide
- Publishing Synergy: Blog, Twitter and Ulitzer
- The Next-Generation of Business Intelligence
- Ulitzer Names the World's 30 Most Influential Cloud Computing Bloggers
- BEA Updates WebLogic SOA Portal for Web 2.0 Era
- Google Wave
- Wave on Ulitzer: Confessions of a Google Wave Fanboy
- View Cloud Expo Europe 2009 Keynote on SYS-CON.TV
- Cloud Computing Can Revitalize Your Career as Software Developer
- Virtualization Expo New York Call for Papers to Expire January 15, 2010
- Cloud Expo New York Call for Papers to Expire January 15, 2010
- Who Are The All-Time Heroes of i-Technology?
- Where Are RIA Technologies Headed in 2008?
- Success, Arrogance, Rise and Fall
- AJAX World RIA Conference & Expo Kicks Off in New York City
- Personal Branding Checklist
- The Top 150 Players in Cloud Computing
- i-Technology Viewpoint: Attack of the Blogs
- Web 2.0 News and Wrapping Up "Real-World AJAX" Seminar
- Appcelerator Building Out the RIA Open Source Community
- The Top 250 Players in the Cloud Computing Ecosystem
- SOA 2 Point Oh No!
- i-Technology Viewpoint: It's Time to Take the Quotation Marks Off "Web 2.0"























