Google Exploit: Spammers Force Google to Violate its own Webmaster Guidelines

It’s almost inconceivable to think that Google could become its own worst enemy, but that’s exactly what’s happened. Google has been at war against website spammers, who try to manipulate its ranking algorithms, since the inception of the search engine itself. Yet now, through a vulnerability on its servers, Google has actually become complicit in facilitating the very thing that it’s been fighting against all this time.

Spammers are now using a cross-site scripting (XSS) exploit on google.com to manipulate Google’s own search engine as well as other search engines that rely on links as a ranking signal.

The exploit was discovered this morning by the team at Spark SEO, while conducting routine website audits. According to research conducted by Spark SEO, the vulnerability has been present on Google since at least January 2017.

In this article we’ll cover why spammers are exploiting Google, and how exactly they are doing it. The information in this article is for educational purposes. We do not condone you replicating any learnings in this post, and should you choose to replicate anything, you do so entirely at your own risk.

Why Spammers are Hacking Google

Google uses hyperlinks as the currency for ranking in its search results. The more links that any website has from other sites on the web, the more prominently it will appear in Google’s search engine results. There are other ranking factors apart from links, but links are believed by many to be the single most important signal.

Because of the importance of links, search engine marketers try to accumulate links as part of their marketing campaigns. Although most search engine optimisers (SEOs) leverage legitimate methods for attracting links, many others resort to shady tactics. If you’ve ever noticed seemingly misplaced links on forums or blogs, these were most likely created by dodgy black hat marketers trying to manipulate search engine algorithms into rewarding them with greater visibility in the search engines results.

Google wants all external links to be natural. This means that they want webmasters to only link to external sites if the link is created altruistically, with the objective of enriching the website visitor’s experience. Websites are often penalised by Google if they are caught linking to other sites “unnaturally” i.e. for the purpose of manipulating search engine rankings.

Google’s webmaster guidelines state, “Any links intended to manipulate PageRank or a site’s ranking in Google search results may be considered part of a link scheme and a violation of Google’s Webmaster Guidelines. This includes any behavior that manipulates links to your site or outgoing links from your site.”

It’s clear that Google deems both the sites that give and receive the unnatural links as having violated its guidelines.

Yet, in a strange and ironic turn of events, the spammers have figured out how to get unnatural links from non-other than Google itself!

Its utterly mind boggling that Google could become the ultimate source of unnatural links when they are not just the antichrist of unnatural links, but have in place teams of people whose core purpose it is to catch and punish the perpetrators of such activity.

Googles algorithms assign massive value to links from highly authoritative websites. According to Alexa, Google.com is the world’s most authoritative website. A link from Google.com might be akin to the holy grail for some SEOs.

How Spammers are Hacking Google

Spammers are using a cross-site scripting (XSS) exploit to force Google.com to link to their site. In simple terms, this means that the black hat marketers are sending a request to Google’s servers, via the URL, which forces Google to generate a page containing a link to the spammer’s website.

Here’s exactly how they are doing is.

So if the spammer wanted a link to my site, https://sparkseo.net/ from Google.com, they would just append my URL to the end of the following string:

Here’s the string: https://google.com/url?q=

So, when we add my URL it becomes: https://www.google.com/url?q=https://sparkseo.net

Now, when we visit this page in our browser, Google’s server automatically returns a page on Google.com domain which contains a hyperlink to my website as shown below:

Once the page is created the black hat SEOs just need to index the page. In other words, they link to this new page from any other website that Google already knows about. This allows Google’s bots to discover the hacked page on google.com, where it will then see the link to the SEO spammer’s website. This will trick Google’s algorithms into thinking that the spammer’s website is an authoritative site, thus rewarding it with higher rankings.

This exploit works on both Google.com and maps.google.com.

According to Ahrefs tool, the path ‘maps.google.com/url?q=’ has almost 2000 backlinks. Each backlink likely represents an instance of a spammer making Google index one of their sites. We can therefor assume that there are about 2000 websites capitalising on this exploit at time of writing.

The oldest links date back to January 2017, suggesting that this hack has gone undetected for quite some time. The data indicates that the use of the exploit exploded in popularity in March 2020, most likely as word spreads across the opportunistic black hat community.

No doubt some search engine marketers will look upon this as a form of poetic justice and revel in the irony that spammers have turned to Google, to manipulate Google.

It might even be funny to imagine that when Google’s algorithms finally realise that Google itself is its own enemy, from which it needs to protect itself, the whole system will implode like a computer with two conflicting commands in its kernel.

However, the reality could be a lot more serious.

XSS attacks are often carried out by hackers with more sinister goals in mind, than simply manipulating Google’s ranking algorithms. Hackers normally exploit such vulnerabilities for the purpose of getting users to download malware and viruses. As you saw in our earlier example, we were able to create a link to any website of our choice. What’s stopping a hacker from linking to a virus? Perhaps unsuspecting users wouldn’t hesitate to click on such a link because it appears on Google, the world’s most trusted website.

The full extent to which the vulnerability in Google could be exploited is not clear at this stage. But never the less, we can only hope that Google reads this post and fixes it as soon as possible, even if just to stop the spammers. Please share this post to help make that happen.

FREE 60-minute DIY hacks: Make AI chatbots recommend your brand

Turn ChatGPT, Gemini, Grok and Google’s AI Overviews into your Brand ambassadors in under an hour!

We’ll send you a FREE step-by-step guide (with real examples) to engineer the signals that push AI bots into thinking that your brand is the best thing since sliced bread.

You can implement most of it in under an hour and see the results within a few days without technical ability.

Where should we send the hack?

You may also like