Skip to content
Account takeover Disclosed report Beginner

Email Verification bypass on signup

The WordPress.com invitations API returned the invite key and invite link to the inviter, allowing an attacker to create an account for any unregistered email address without access to that email. This bypasses email verification on signup.

farhan0x00 Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 10 days
  • Paid in 10 days
  • Disclosed after 12 days

Summary:

This bug is related to wordpress.com. There is feature in wordpress.com which allow users to invite people. We have to enter email address to invite that particular person but the invite link and invite key is also available to the person who invited. This allow attackers to create the profile without having access to the email address and they can make account on behalf of any people who is not already signed up in wordpress.com

Platform(s) Affected:

wordpress.com public-api.wordpress.com

Steps To Reproduce:

This issue can be reproduced by following these easy steps:

  • Login to your account on wordpress.com
  • Setup burpsuite proxy with browser.
  • Select your site and navigate to manage>people
  • Enter any email address which is not already registered in wordpress.com and invite
  • Open this url in browser: https://wordpress.com/people/invites/yoursite.wordpress.com [change yoursite.wordpress.com with your site]
  • See the burp suite proxy tab and find the GET request to this endpoint [https://public-api.wordpress.com/rest/v1.1/sites/siteId_here/invites?http_envelope=1&status=all&number=100] [there will be a number instead of siteId_here]
  • In response of this GET request you will see JSON which will be consisting of the details about the invitations sent and there you will find "invite_key" and "link".
  • Copy the link and open this in another browser.
  • You can create account on behalf of this email without having access to the email and email verification is bypassed :)

See the attached video for POC

Mitigation:

This is the pure violation of secure design principles, this can be mitigated by just removing the [invite_key] and [link] from the response in [https://public-api.wordpress.com/rest/v1.1/sites/siteId_here/invites?http_envelope=1&status=all&number=100]. Because this invite key and link is the property of the person being invited, showing these creds to other people will result this type of issue.

Impact

This issue can be used to bypass email verification on signup. Attackers can create account on behalf on any person without having access to the email account. This issue is affecting integrity of the wordpress.com

Attachments

wordpresscom-2020-11-21_01.21.40.mp4 From the original on HackerOne

The original report as published on HackerOne, by farhan0x00. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

The invitations API response included the invite key and invite link, which should only be known to the invited person.

Impact

An attacker could create an account on behalf of any person who is not already signed up, without access to that person's email, affecting the integrity of wordpress.com.

What the attacker needed

A wordpress.com account; ability to invite people to a site; target email not already registered

The fix

The invite_key and link should be removed from the invitations API response so that only the invited person can see them.

How it was found

  1. Log in to wordpress.com and set up a proxy.
  2. Go to the site's People management page and invite an email address that is not yet registered.
  3. Open the invites page for the site and observe the GET request to the invites API.
  4. In the JSON response, find the invite_key and link fields.
  5. Copy the link and open it in another browser.
  6. Create an account for that email address without accessing the email inbox.

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.

When you invite someone to a site, the system creates a special link that lets them join. Normally only the invited person should see that link, but here the person sending the invite could also see it. That meant an attacker could use the link to sign up using someone else's email address without ever checking that email.

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.

More from Automattic

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.