When Google isn't Google
Last Updated: 2013-06-10 12:22:43 UTC
by Johannes Ullrich (Version: 1)
Like many other exploit scripts, the recent "Plesk" exploit used a fake user agent of "Googlebot". Attackers assume that most web applications are happy to be indexed by Google and possibly ably no or less stringent filters. For example, some applications will show more content to Google that is not readily displayed to normal users unless these users sign up, solve a captcha or even pay.
Google however makes it pretty easy to distinguish "real" Google bots from fake once. The IP address used by Google will reverse resolve to crawl-a-b-c-d.googlebot.com, where a-b-c-d is the IP address of the bot. In addition, this host name will resolve to the IP address used. In order to validate if a google bot is "real", the lookup against .googlebot.com is required. An attacker could fake the reverse lookup if the attacker can provide reverse DNS for the IP address used by the attacker.
Personally, I use a little shell script to extract "fake google" spiders from my logs:
Johannes B. Ullrich, Ph.D.
SANS Technology Institute
Came across is the other day after reading the previous plesk posts.
Jun 10th 2013
9 years ago