Zscalerのブログ

Zscalerの最新ブログ情報を受信

Security Research

How to Use Google to Be the Bad Guy, or Fight the Bad Guys

image
JULIEN SOBRIER
May 04, 2010 - 4 分で読了

Find vulnerable targets

When a vulnerability is disclosed in a popular software (such as Wordpress, Joomla!, Drupal, etc.), attackers can use Google to quickly find a list of websites that run the potentially vulnerable versions of the application.

This page lists few (old) vulnerabilities and the corresponding Google search to find vulnerable targets.

More recently, I was doing research on hacked Wordpress websites. The Wordpress version can be identified with this HTML code:


Google does not usually allow search for HTML source code, but only for text. However, when a page is not parsed correctly, HTML code gets indexed as regular searcheable content, which actually happens pretty often

Google can show you a list of Wordpress sites that run version 2.7.1:

 

Image

 

 Google search results for Wordpress 2.7.1


Coupled with security feeds that include ready-to-use exploits such as SecurityFocus  this technique can let attackers find vulnerable sites within minutes of a vulnerability disclosure, before website owners have time to update their website. For example, all rcent versions of MediaWiki, except the last one, are proned to a Cross Site Request Forgery vulnerability. Most othe MediaWiki websites carry an image with the alternative text "Powered by MediaWiki". Using the Google search for this text, it is easy to gather a list of potentially vulnerable targets.

Find vulnerable code

Google Code Search is a powerful tool that allows advanced searches in the source code of open software. You can even use regular expressions for the searches.

This tool can be used to find different types of vulnerabilities such as:

 

Find infected pages

But we can also use Google to find pages infected in the same fashion, or exploits running in the wild. This allows us to gather more information about the attack, to get a list of domains that serve malicious files and to create an efficient set of signatures or heuristics to protect customers.

For example, we recently found this obfuscated JavaScript maliciously injected into the home page of an Indian college website:

 

 

 

      


This code loads another JavaScript file from BestBlenderPart.ru:

 

 

 

 

Image


A Google search for part of the obfuscated code shows a list of infected websites, and a few posts in forums that also list infected pages. All the injected, obfuscated JavaScript is slightly different, but the end result is the same - external JavaScript is loaded on port 8080 from several domains such as easyfunguide.at, reachsaw.ru, forredtag.ru, etc. With this information, we can add the malicious files to denylists and develop good heuristics to block infected pages.

 

 

 

 

Image

 

 

 Infected pages found by a Google search
 
-- Julien
form submtited
お読みいただきありがとうございました

このブログは役に立ちましたか?

免責事項:このブログは、Zscalerが情報提供のみを目的として作成したものであり、「現状のまま」提供されています。記載された内容の正確性、完全性、信頼性については一切保証されません。Zscalerは、ブログ内の情報の誤りや欠如、またはその情報に基づいて行われるいかなる行為に関して一切の責任を負いません。また、ブログ内でリンクされているサードパーティーのWebサイトおよびリソースは、利便性のみを目的として提供されており、その内容や運用についても一切の責任を負いません。すべての内容は予告なく変更される場合があります。このブログにアクセスすることで、これらの条件に同意し、情報の確認および使用は自己責任で行うことを理解したものとみなされます。

Zscalerの最新ブログ情報を受信

このフォームを送信することで、Zscalerのプライバシー ポリシーに同意したものとみなされます。