Authentication bypass on JetPack SSO manager - Allows to access the administration panel of wordpress without user interaction
A user could invite an arbitrary email address to a WordPress.com account and accept the invite, which marked that email as verified without the owner confirming it. If a self-hosted WordPress site used Jetpack SSO with email matching enabled and had a user with that same email, the attacker could sign in to that site's admin panel as that user.
Originally disclosed on HackerOne
- Triaged in 1 hour
- Fixed in 3 days
- Paid in 5 days
- Disclosed after 6 months
Summary by the program
The main issue in this report was that someone could invite an arbitrary email to a site, and then also verify that email address.
If someone was using that email on a Jetpack site, SSO and "Match accounts using email addresses" was enabled, the attacker could gain access to that site where account with that arbitrary email existed.
The report
Hello team,
Summary:
The JetPack SSO manager is plugin that allows any user to log into their wordpress using the same log-in credentials you use for WordPress.com, then they’ll now be able to register for and sign in to self-hosted WordPress.org sites quickly, example :
User creates their wordpress instance at host.com, they install and enable JetPack SSO They later can login into their wordpress instance at host.com using wordpress.com, users are also can make other users register/login with the same company email (@host.com) and access the administration panel of the host
Description :
The user anyways when he tries to authenticate into his wordpress instance via wordpress.com he gotta have his email confirmed, otherwise it won't work, interstingly there is a way that bypasses the email confirmation when a user invites you to his account and you accept his invite your account will be confirmed, chaining those issues the following scenario can result for the authentication bypass of any wordpress instance when these circumestances are met :
- wordpress installed on host.com have jetpack installed and "Match accounts using email addresses" enabled (IDK if this is necessary anyways)
- wordpress instance have a user with specific email, that email does not exist on wordpress.com
You can access this host.com wordpress panel via
Steps To Reproduce:
Setup
- Install Jetpack latest version, once installed go to plugins>Jetpack>settings>"Match accounts using email addresses">enable (I'm not sure if this is intended or not)
- Add user into your wordpress (host.com) with their email (says [email protected])
-
As attacker (email confirmation bypass) :
-
Create two accounts at Wordpress.com A/. One with your personal email and confirm it B/. Second with the victim's existed user at host.com email ([email protected])
-
At your confirmed wordpress.com account go to settings >users invite your second account ([email protected])
-
At your second account go to notifications at the top right, see the invitation and accept it
-
See that your Wordpress.com account’s email has been verified (email confirmation bypass )
-
-
access the wordpress admin panel
- Now at the same browser where the ([email protected]) Wordpress.com account
- go to host.com wordpress panel
- Click on sign in with wordpress.com
- Forward
- See yourself logged in as admin on host.com wordpress
Platform(s) Affected:
JetPack latest version
Supporting Material/References:
As example I bypass ███████
██████
Impact
- Bypass authentication of websites that runs wordpress with JetPack plugin without any user inteaction
Regards,
Adam
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the invitation-acceptance flow marked an email as verified without proving the person accepting actually owned that mailbox, and the SSO email-matching then trusted that unverified claim.
Impact
An attacker could bypass authentication and reach the administration panel of a WordPress site running Jetpack SSO, without any action from the victim.
What the attacker needed
Jetpack SSO enabled on the target site; Email matching enabled (author unsure); Target site has a user with that email; That email is not registered on WordPress.com
How it was found
- Enable Jetpack SSO and turn on matching accounts by email address.
- Add a local user whose email is the target address.
- Create a confirmed WordPress.com account and a second account using the target email.
- From the confirmed account, invite the second account and accept the invitation from its notifications.
- Confirm the second account's email now shows as verified.
- In the same browser, visit the target site and sign in with WordPress.com to land in the admin panel.
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 report has not been written yet. The Original tab links to the source.
Many sites let you log in with a WordPress.com account instead of a local password. They trust the email address on that account to decide which local user you are. Here, an attacker could get an email address marked as confirmed on WordPress.com without controlling it, by accepting an invitation sent to it. That let them log in to someone else's site as that user.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.