News for hackers. Stuff that matters.
Re:XSS attacks on Googlebot allow search index manipulation by apo on Friday July 19, 2019 @08:17AM (#20477950)
Here are the steps to reproduce the attack from what I gather:

1. Find a vulnerable site. The author picked Revolut, a 3-year old, well-funded fintech startup. Others might be found at https://www.openbugbounty.org.

2. Inject the script. The author did so by tacking a URL parameter containing script content to a link he obtained from the Revolut site.

3. Preview the attack with Google's Web Rendering Service, which apparently uses the same version of Chrome used by Googlebot.

4. Submit the link to Googlebot for crawling.

5. View the cached page from the Google results page.

> I reported this to Google in November 2018, but after 5 months they had made no headway on the issue (citing internal communication difficulties), and therefore I’m publishing details such that site owners and companies can defend their own sites from this sort of attack. Google have now told me they do not have immediate plans to remedy this.

Translation: Google declares open season on this attack.

Re:XSS attacks on Googlebot allow search index manipulation by ryanlol on Friday July 19, 2019 @09:38AM (#20478509)
>Google declares open season on this attack.

This has always been the case, people have been exploiting this for at least a decade.

Re:XSS attacks on Googlebot allow search index manipulation by picklemorty on Friday July 19, 2019 @10:04AM (#20478717)
Was the first I was thinking
Re:XSS attacks on Googlebot allow search index manipulation by jefftk on Friday July 19, 2019 @07:29AM (#20477697)
Related: "In the past 3 months we surveyed all internal XSS bugs that triggered the XSSAuditor and were able to find bypasses to all of them." --http://nakedsecurity.sophos.com/2019/07/18/google-chrome-is-...

(Disclosure: I work for Google)

Re:XSS attacks on Googlebot allow search index manipulation by geophertz on Friday July 19, 2019 @08:53AM (#20478200)
The thing with this vulnerability is that it is just an XSS.

It has nothing to do with Google apart from the fact they don't run GoogleBot using a recent version of Chrome.

The other thing is that if I understand correctly, this could work without JavaScript. You could just inject HTML <a> tags to inject links in XSS vulnerable website.

PS: Apparently Google Bot has been updated to the latest version of Chromium which means it is even less a vulnerability on Google's side.

Re:XSS attacks on Googlebot allow search index manipulation by quanticle on Friday July 19, 2019 @09:24AM (#20478404)
Exactly. The breathlessness of the article made no sense to me. It's like someone writing, "Did you know that if someone breaks into your home, they can rearrange the books on your bookshelf‽" Well, yes, of course they can but if someone has broken into my house, unauthorized alphabetization is the least of my worries.

Similarly, if there's an XSS vulnerability on my site, Google search index manipulation is pretty far down on the list of things I'm going to be worried about.

Re:XSS attacks on Googlebot allow search index manipulation by Dylan16807 on Friday July 19, 2019 @01:36PM (#20480761)
Think of it more like a DDOS. If they break into your house, you have bigger worries. If they break into the houses of a hundred thousand strangers, and use them to demonstrate that their site should get all the search results and your site goes on page 5, what can you do?
Re:XSS attacks on Googlebot allow search index manipulation by skrebbel on Friday July 19, 2019 @02:46PM (#20481400)
My compliments on "unauthorized alphabetization".

(and the interrobang, obviously)

Re:XSS attacks on Googlebot allow search index manipulation by michaelt on Friday July 19, 2019 @10:25AM (#20478897)

  It has nothing to do with Google
Some people might expect Google to detect and block black hat SEO techniques? And see this behaviour as Google erroneously miscounting links to pages?
Re:XSS attacks on Googlebot allow search index manipulation by luckylion on Friday July 19, 2019 @02:30PM (#20481237)
The links won't really matter though, because they don't have value. You need somebody to link to the XSS'd URL for the links to help you with SEO, preferably linking to it from the legit page - which will generally not happen, and if you can make it happen, you don't need this attack, you can just link to your page directly.
Re:XSS attacks on Googlebot allow search index manipulation by tk2 on Friday July 19, 2019 @10:36AM (#20478978)
I accidentally found this circa 2008. I found a xss vulnerability on a local news website, where I could inject js into the webpage URL.

I then posted a poc on my blog. The poc will create a img link to my blog.

To my surprise my blog ranked 2nd for the news name. The only explanation that I can think of was googlebot followed the poc link and thought the news site has a link to my blog. Of course this is only possible if googlebot execute js, which was not a standard for other crawlers at that time.

I believe the blackhat term for this is Google Bowling. Correct me if I'm wrong.

Re:XSS attacks on Googlebot allow search index manipulation by methyl on Friday July 19, 2019 @08:32AM (#20478052)
> Googlebot is based on Google Chrome version 41 (2015), and therefore it has no XSS Auditor

It is no longer true: https://searchengineland.com/google-will-ensure-googlebot-ru...

Re:XSS attacks on Googlebot allow search index manipulation by 3xblah on Friday July 19, 2019 @07:41AM (#20477763)
"Since Googlebot executes Javascript, this allows an attacker to craft XSS URLs that can manipulate the content of victim sites."

In some imaginary future with ubiquitous headless browser-based bots, having Javascript disabled might actually be a good test for "Are you human?"

Re:XSS attacks on Googlebot allow search index manipulation by inian on Friday July 19, 2019 @10:18AM (#20478829)
Google is depreciating the xss auditor anyway - https://portswigger.net/daily-swig/google-deprecates-xss-aud...
Re:XSS attacks on Googlebot allow search index manipulation by coldcode on Friday July 19, 2019 @07:43AM (#20477783)
No fix citing "internal communication difficulties", perhaps Google could use, I don't know, some kind of tool. I too work for a huge company, and oddly enough we also have communications difficulties sometimes despite all of our tools. But we not a technology company, seems like a Google should be better at this.
Re:XSS attacks on Googlebot allow search index manipulation by the_duke on Friday July 19, 2019 @08:27AM (#20478016)
"internal communication difficulties" does not mean "I can't talk to the person", it means political infighting or the responsible team doesn't care/see it as a problem.
Re:XSS attacks on Googlebot allow search index manipulation by AJ007 on Friday July 19, 2019 @08:28AM (#20478026)
There is probably a long winded explanation somewhere how this is actually a feature and not an exploit.
Re:XSS attacks on Googlebot allow search index manipulation by chrismorgan on Friday July 19, 2019 @08:41AM (#20478120)
Well, how are you going to fix it without removing important features like submitting pages to the index? There are no perfect XSS auditors; you can fairly consistently work around Chrome’s, which is why they’re giving up on it now.

I don’t see any realistic solution to this problem.

Re:XSS attacks on Googlebot allow search index manipulation by londons_explore on Friday July 19, 2019 @09:02AM (#20478270)
I can imagine the search teams response now...

"If your site has an XSS, then anyone can make any content appear on that domain... So why's it so bad if anyone can also make anything appear on the domain in Google Search? - we're just reflecting reality.

Next you guys will report that you wrote a comment in hackernews and that appeared on google search too!"

Re:XSS attacks on Googlebot allow search index manipulation by eadmund on Friday July 19, 2019 @08:47AM (#20478163)
> No fix citing "internal communication difficulties", perhaps Google could use, I don't know, some kind of tool.

That's the problem: half the team was using Google Hangouts, the other half of the team were using Google Meet, and three random guys are using Allo.

Re:XSS attacks on Googlebot allow search index manipulation by cbsks on Friday July 19, 2019 @01:10PM (#20480503)
Don't forget the one stubborn person still using Wave
Re:XSS attacks on Googlebot allow search index manipulation by akerro on Friday July 19, 2019 @07:22AM (#20477665)
Mining Monero on googlebot anyone?
Re:XSS attacks on Googlebot allow search index manipulation by sametmax on Friday July 19, 2019 @07:33AM (#20477716)
It's not going to stay long enough on one page to do so.
Re:XSS attacks on Googlebot allow search index manipulation by bennofs on Friday July 19, 2019 @07:42AM (#20477772)
Then distribute it over more than one page.
Re:XSS attacks on Googlebot allow search index manipulation by londons_explore on Friday July 19, 2019 @09:05AM (#20478298)
it stays on a page for 30 seconds, and has a pretty decent CPU.

I'm going to guess you could get a decent amount of monero mined...

Googlebot will only visit a page if it thinks that (on average across the domain), there are ~99 human visitors for every bot visit. So you'll have to hide the monero miner on a popular domain.

Re:XSS attacks on Googlebot allow search index manipulation by codedokode on Friday July 19, 2019 @09:55AM (#20478667)
That definitely is not true. I know sites that have higher share of bot visits than 1%.
Re:XSS attacks on Googlebot allow search index manipulation by lgats on Friday July 19, 2019 @09:43AM (#20478560)
Source?
Re:XSS attacks on Googlebot allow search index manipulation by toto007 on Friday July 19, 2019 @11:24AM (#20479367)
Also if googlebot has been fixed and the chrome fix the url, you can however exploit the bug of xss with an proxy web https://www.hidemyass-freeproxy.com/proxy/it-it/aHR0cDovL2Jl...

or open the main url with firefox browser: http://bedbreakfast.be/en/tunis-662?slt_city=%3C/script%3E%3...

Re:XSS attacks on Googlebot allow search index manipulation by codedokode on Friday July 19, 2019 @09:53AM (#20478647)
This is actually not bad. Maybe it will make site developers aware of XSS and motivates to fix it?

It isn't Google's job to fix your broken sites.

Re:XSS attacks on Googlebot allow search index manipulation by jaksc09 on Sunday July 21, 2019 @07:49AM (#20490937)
This issue no longer applies since Googlebot now runs the latest Chrome: https://searchengineland.com/google-will-ensure-googlebot-ru...
Re:XSS attacks on Googlebot allow search index manipulation by tripzilch on Friday July 19, 2019 @12:08PM (#20479798)
I'm curious if the author had just injected a URL as plaintext, no JS involved, does the Googlebot also follow strings that just look like URLs?
Re:XSS attacks on Googlebot allow search index manipulation by liveoneggs on Friday July 19, 2019 @09:12AM (#20478327)
brilliant use of XSS here. This is just great.
Re:XSS attacks on Googlebot allow search index manipulation by quickthrower2 on Friday July 19, 2019 @08:01AM (#20477886)
Nicely laid out for the black hatters!
Re:XSS attacks on Googlebot allow search index manipulation by whitten on Friday July 19, 2019 @08:16AM (#20477944)
Hard to decide. Should the white hatters get enough information to deal with a problem at the risk of informing the black hatters something they did not know?

Or do you assume the black hatters already have access to all the information they want to know, and it is only the white hatters who are left in the dark by hiding information ?

Re:XSS attacks on Googlebot allow search index manipulation by anaphor on Friday July 19, 2019 @08:47AM (#20478158)
They are probably already aware of this if they do this sort of black hat SEO type stuff.
Re:XSS attacks on Googlebot allow search index manipulation by ryanlol on Friday July 19, 2019 @09:35AM (#20478492)
Yeah, this particular technique is as old as the hills.

CVE-2007-1287 was abused for this specific purpose over a decade ago, and remnants of that still occasionally show up in google indexes.

Re:XSS attacks on Googlebot allow search index manipulation by abadabadingdong on Friday July 19, 2019 @03:10PM (#20481585)
Looks like Tom's blog is toast atm - 502 error. This is why we can't have nice things.
Re:XSS attacks on Googlebot allow search index manipulation by amelius on Friday July 19, 2019 @01:46PM (#20480846)
> This presumably manipulates PageRank

Is PageRank still used by Google?

Re:XSS attacks on Googlebot allow search index manipulation by kevlened on Friday July 19, 2019 @08:00PM (#20483390)
This was on a post a few days ago [0]:

> Ex-Google-Search engineer here

> The comments here that PageRank is Google's secret sauce also aren't really true - Google hasn't used PageRank since 2006.

[0] https://news.ycombinator.com/item?id=20442044

Re:XSS attacks on Googlebot allow search index manipulation by mgaw on Friday July 19, 2019 @02:12PM (#20481091)
Yes, according to https://mobile.twitter.com/methode/status/910435076613328896

(@methode works for Google)