Vulnerability in Google WordPress Plugin Grants Attacker Search Console Access
The Site Kit by Google WordPress plugin exposed a proxySetupURL to any authenticated user and allowed verification requests without capability checks, enabling a subscriber-level user to become a Google Search Console owner for the site. This could let an attacker modify sitemaps, remove pages from search results, or conduct black hat SEO.
wordfence.com
Published on wordfence.com
On April 21st, our Threat Intelligence team discovered a vulnerability in Site Kit by Google, a WordPress plugin installed on over 300,000 sites. This flaw allows any authenticated user, regardless of capability, to become a Google Search Console owner for any site running the Site Kit by Google plugin.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely missing capability checks on the admin_enqueue_scripts action and the admin_action_googlesitekit_proxy_setup action, allowing any authenticated user to access the proxySetupURL and perform site verification.
Impact
An attacker with a low-privileged account could become a Google Search Console owner, potentially modifying sitemaps, removing pages from search results, or aiding black hat SEO campaigns; a Wordfence firewall rule blocked verification attempts from non-administrators, but the proxySetupURL disclosure could not be prevented.
What the attacker needed
A low-privileged authenticated account (e.g., subscriber); the Site Kit by Google plugin version <= 1.7.1
The fix
The vulnerability was fixed in version 1.8.0 by adding capability checks to the admin_enqueue_scripts action and the handle_verification_token function.
How it was found
- Log in as any authenticated user, such as a subscriber, and access the WordPress admin dashboard.
- View the HTML source code of an admin page to find the proxySetupURL.
- Use the proxySetupURL to initiate the Google OAuth and site verification process.
- Send a verification request to the admin_action_googlesitekit_proxy_setup endpoint with the necessary parameters, without needing administrative privileges.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The plugin helps connect a WordPress site to Google services. It accidentally showed a special setup link to every logged-in user, even those with low permissions, and it did not check who was allowed to complete the Google verification step. So a low-privileged user could take over the site's Google Search Console account, which controls how the site appears in Google search.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.