Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 20 guests and 1 member online
You are here:
Home
Resources
Mass Media
Googlebot will do SQL Injection for you!
EH-Net
May 25, 2013, 05:46:25 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Resources
>
Mass Media
(Moderator:
don
) >
Googlebot will do SQL Injection for you!
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Googlebot will do SQL Injection for you! (Read 8471 times)
0 Members and 1 Guest are viewing this topic.
Jhaddix
Sr. Member
Offline
Posts: 317
Googlebot will do SQL Injection for you!
«
on:
March 03, 2009, 03:55:14 AM »
This is a crazy attack method, very scary and ingenious on the attackers part. I wonder if google can be held liable?
Quote
The Dark Side of Google
In the past months we were talking about Google Hacking as an effective tool for attack automation, attack targeting and attack proxying. Last week, while I was investigating an attack vector, I "bumped" into another real life example of Google's darker side.
The attack vector I was investigating was an SQLi attack on a specific PHP module. The fact that the attack vector was executed on a non PHP web application indicated that I am probably looking at some kind of automated attack and that it might be worthwhile to further investigate. Looking-up the targeted resource verified that it is part of an open source PHP ecommerce project and that a past version of this resource was found vulnerable to SQLi. Nothing interesting up to that point, but I asked myself why was the attack executed on a non PHP web application? My next step was to look-up this specific attack vector in Google search. Bingo! The search results were very interesting...
I was able to distinguish between two types of search results:
1. Results that included the attack vector as part of the link (first example)
2. Results that included the attack vector as part of the indexed content (second example)
Let's see what all this tells us...
The search results page actually tells the whole attack story. As a first step, the attackers cause Google to index web pages embedded with links that are actually SQLi attack vectors. This can be achieved by using various methods, for example:
1. Embedding malicious links in a controlled domain and then asking Google to crawl
2. Embedding malicious links in forums, blogs or any other content sharing platform
These pages are the ones to be expressed as the second type of search results I mentioned above.
Next, Google crawls the pages in which the malicious links were embedded and follows them. Since the links are actually attack vectors, this action is translated into an SQLi attack executed by the Google against the target web applications. When Google receives a response to the attack it indexes the data under the target application's domain name. This is illustrated by the first example of search results where the link (in green) is obviously an SQLi attack vector and the meta description is an SQL server error response. As the final step of the attack, the attacker extracts the results of the SQLi attack by sending specially crafted search queries to Google.
What is really disturbing in this attack scenario is that attackers can both execute an attack and get the results back without issuing a single request to the target application - Google does all of this for them. A lot has already been said regarding the gap between what Google should and can do and what Google actually does to prevent such issues. A new research conducted by the ADC shows that this is only the tip of the iceberg and it is definitely not the only or the major security issue associated with Google services. In fact, expect more on this topic in one of the coming security conferences where we take this to the next level by revealing a Google service that enables even more advanced attack techniques.
- Eldad
Logged
GSEC, GPEN, GWAPT, ECPPT, WAHHlive, LSOAdvancedPenTester
http://www.securityaegis.com
http://www.pentesterscripting.com
http://code.google.com/p/pentest-bookmarks/
timmedin
Sr. Member
Offline
Posts: 469
Re: Googlebot will do SQL Injection for you!
«
Reply #1 on:
March 03, 2009, 08:48:08 AM »
Brilliant!
Logged
twitter.com/timmedin |
http://blog.securitywhole.com
Ketchup
Hero Member
Offline
Posts: 1021
Re: Googlebot will do SQL Injection for you!
«
Reply #2 on:
March 03, 2009, 10:17:15 AM »
Wow, I had to read this a few times to grok it. That's Heavy Duty! It's an absolutely brilliant attack. I am guessing this makes cops' work much more difficult to track the intruder.
Logged
~~~~~~~~~~~~~~
Ketchup
NickFnord
Full Member
Offline
Posts: 117
Re: Googlebot will do SQL Injection for you!
«
Reply #3 on:
March 03, 2009, 10:20:06 AM »
on the other hand, the evidence where the attack came from is in the google cache. not that it's hard to set up an anonymous blog and have that indexed I guess.
Logged
timmedin
Sr. Member
Offline
Posts: 469
Re: Googlebot will do SQL Injection for you!
«
Reply #4 on:
March 03, 2009, 11:19:22 AM »
Quote from: NickFnord on March 03, 2009, 10:20:06 AM
on the other hand, the evidence where the attack came from is in the google cache. not that it's hard to set up an anonymous blog and have that indexed I guess.
You could trace it back to the blog, but to find the person who posted the funky link on the blog is another story.
Logged
twitter.com/timmedin |
http://blog.securitywhole.com
former33t
Full Member
Offline
Posts: 226
Re: Googlebot will do SQL Injection for you!
«
Reply #5 on:
March 03, 2009, 09:20:39 PM »
This is simply brilliant. As has been pointed out, one could still work to trace this back (as with anything) but it would involve a simply massive amount of work considering that the attacker never even issues a request to the target site. I would think the weak link would be the specially crafted web search to get the results. Google must be caching its search query terms somewhere.
Of course if you think that your unique search terms will point back to you, you could always post the link to the search in a public place (blog, etc) and in minutes all sorts of folks who have no clue what they are looking at will click on the link. You could then hide in the noise.
All in all, simply brilliant.
Logged
Certifications: CREA, MCSE: Security, CCNA, Security+, other junk
Ketchup
Hero Member
Offline
Posts: 1021
Re: Googlebot will do SQL Injection for you!
«
Reply #6 on:
March 03, 2009, 09:47:42 PM »
My question is, in legal terms, is this an attack? Or is it simply research your are conducting on google? Who is hacking, is it you, or is it googlebot?
Logged
~~~~~~~~~~~~~~
Ketchup
timmedin
Sr. Member
Offline
Posts: 469
Re: Googlebot will do SQL Injection for you!
«
Reply #7 on:
March 04, 2009, 08:15:39 AM »
Quote from: Ketchup on March 03, 2009, 09:47:42 PM
My question is, in legal terms, is this an attack? Or is it simply research your are conducting on google? Who is hacking, is it you, or is it googlebot?
Clearly data is being "leaked" due to SQL injection. I don't think anyone would debate that SQL injection is an attack. As to the attacker, it is the original blog poster, and google is the proxy.
It is like Yosemite Sam tieing you up and placing you on the railroad tracks. Ultimately the train is what kills you but Sam's actions are what caused it.
«
Last Edit: March 04, 2009, 08:18:58 AM by timmedin
»
Logged
twitter.com/timmedin |
http://blog.securitywhole.com
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(30) by
don
Tools
: Symbolic Exploit Assistant project is looking for collaborators
(0) by
galapag0
Greetings
: Hi from the UK
(5) by
prats84
GCIH - GIAC Certified Incident Handler
: Passed my GCIH
(9) by
prats84
Network Pen Testing
: Want a challenge? Want a GXPN practice exam?
(0) by
ajohnson
GCIH - GIAC Certified Incident Handler
: GCIH Free Practice test attempt
(1) by
prats84
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.