Home > Information Security Tips > Threats and security advisories > Protecting exposed servers from Google hacks (and Google 'dorks')
Security UK Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

THREATS AND SECURITY ADVISORIES

Protecting exposed servers from Google hacks (and Google 'dorks')


Michael Cobb, Contributor
06.18.2008
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


A reader recently asked me, "How are phishers using search engines like Google to seek out and hack vulnerable PHP applications?"

Search engines are now routinely used to find ways of gaining unauthorised access to servers. Phishers need a vulnerable Web server to collect information, like names and account numbers, which their bogus emails are designed to elicit.

Suppose a hacker wanted to harvest bank account data from customers of the hypothetical ACME Bank. A phishing email consists of an HTTP link preceded with text that goes something like this:

We would like to inform you that we are currently carrying out scheduled maintenance. In order to guarantee the high level of security to our business customers, we require you to complete ACME Bank's Commercial Online Form.

(Obviously the step that many phishers overlook is a quick copy edit to correct the grammar and spelling of the message, so the above message was sent as written).

Before sending the message, a phisher needs to build an "ACME Bank Commercial Online Form" and a database, hosted somewhere on the Internet, that can process and store the form input. False or misleading email header information, including the use of a deceptive subject line, has been illegal in the U.S. since 2003, thanks to the CAN-SPAM Act. Therefore, attackers don't want to host a phishing database on their own server or indeed any server that can be traced back to them.

Enter the "Google dork," a term originally coined to describe a person foolish enough to leave a server exposed in ways that are easily discoverable through a search engine. The term has evolved and is now shorthand for any number of search strings that find vulnerable hosts, such as: "Welcome to phpMyAdmin" AND "Create new database".

These queries find servers on which the commands needed to create a new database with phpMyAdmin -- a tool written in PHP to handle the administration of MySQL over the Web -- may not be adequately protected. In other words, potential hosts for a phishing database. After all, if the server is so loosely configured as to allow a database to be created on it, there's a good chance that the server can be used for a phishing campaign without being detected.

After setting up a database, all that remains is to send out the message in a large email blast and hope that some of the recipients bank at ACME Bank and fall for the ploy. Customers may enter confidential information into the database and the hacker can then retrieve it from the server, ready to sell the data or leverage it for his or her own ends.

There are hundreds of Google dorks, and they are actively traded on underground sites. So how can an enterprise defend against them? For starters, don't run or allow users to run MySQL on Web-facing servers without proper training. Search the Google Dork cited earlier, and you will find a handful of sites that actually warn the user:

"Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole." (Obviously this warning is itself a Google dork.)

Second, review the configuration of the organisation's Web-accessible databases to make sure that they are password-protected and stored in restricted access directories. Third, shield sensitive context from search engine crawlers by using robots.txt, an exclusion standard that prevents Web robots from accessing parts of a website that would otherwise be viewable by the public. For example:

https://myserver.com/robots.txt:
User-agent: *
Disallow: /

Bear in mind that if HTTP and HTTPS share the same root directory, a script will be needed to serve up the proper robots.txt file, depending on whether HTTP or HTTPS is used. It's also possible to conditionally add the robots meta tag into pages served by the HTTPS server:

But bear in mind that malicious crawlers need not respect this tag.

Fourthly, but probably not finally, be aware that help is on the way. In fact, Google is now reacting to some Google Dork searches with this message:


See larger image

Rate this Tip
To rate tips, you must be a member of SearchSecurity.co.UK.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Threats and security advisories
Debian: A niche OS with a not-so-niche security flaw
Web advertising exploits: Protecting Web browsers and servers
Planning for 'DRAM remanence'
Ransomware: How to deal with advanced encryption algorithms
Malware trends suggest new twists on old tricks
iPhone security in the enterprise: Mitigating the risks
Battling image spam
2006 Products of the Year: Antispyware
2006 Products of the Year: Antivirus
2006 Products of the Year: Authentication

Data Protection Solutions
Will the rise of SharePoint services lead to increased data loss?
Will the Data Handling Review improve government security practices?
Scottish NHS trust ensures no repeat of USB data loss
Information Commissioner turns up the heat on data breach culprits
Windows security: Remote Desktop, hosts file and keyboard lock down
DLP useless when companies fail to classify data
How to detect and remove rootkits with Windows encryption
Three times unlucky for armed forces applicants
Latest data loss could cost EDS, and some staff, dearly
Mobile technology may limit harm of laptop data loss

Database Protection
Secerno puts database security under ArcSight umbrella
NHS trust fires manager for losing laptop
Ransomware: How to deal with advanced encryption algorithms
Vendors rally to repair dangerous DNS flaw
Stockbroking firm fined for weak data security
Brits lose their fear of encryption – slowly
Security survey shows British business still has much to do
Ninety four more breaches reported since the HMRC case
Data loss prevention (DLP) tools in 2008: The new way to prevent identity theft?
Oracle patches serious holes with latest update

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
UK Identity Cards Act  (SearchSecurityUK.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

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.

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts