Main Website RSS FeedCurrent Article

Google Codesearch Launched and Another Problem has Arise

Google just released Google Codesearch to public recently, and just like it’s main search engine … this new feature from Google can be used by malicious users to get sensitive data. For example, database password including it’s username, looking at the source code of malicious program, etc. And that’s all happening because most users always put their compressed backup file in the public directory that can be read by everyone including Google Codesearch and in this case is the public html directory of your server.

Fortunately Google always obey the robots.txt structure, unlike some major search engine. So the only solution to the Google Codesearch is by blocking access to that directory by using robots.txt, but because everyone can see your robots.txt file then it can cause problem too if the malicious users can see that directory. And the only solution i can think of to avoid this :

  • Create a robots.txt to block bot access the important directory and create another subdirectory under the important directory but do not put the subdirectory name in your robots.txt file because it can be seen by the malicious users, for example /public_html/important_directory/the_subdirectory
  • Create a .htaccess file to block everything including yourself to the important directory (don’t try this if you do not have access to FTP / File Manager)
  • and don’t forget to Disallow Directory listing, you can do it easily by using .htaccess

Although there’s alot of possible solution, the best thing to do is never put your very sensitive data in your public_html directory of your server (unless your server got totally hacked or there’s another exploit) especially your backup file which most not tech savvy users did. Anyway let’s just hope that Google Codesearch get fixed / modified and they’ll automatically filter some important stuff like that.

RSS Feed for This Post1 Comment(s)

  1. 1
    Mexxik | Apr 19, 2007 at 6:10 / 6:10 AM | Links to this comments | Reply

    test

1 Trackback(s)

  1. From 구글 코드 검색(Google Code Search)의 공포 | Oct 7, 2006

RSS Feed for This PostPost a Comment

Line and paragraph breaks automatic, e-mail address never displayed, avoid using spammy words or phrases to prevent your comment from going into the oblivion, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>