Skip to content
Account takeover Write-up Intermediate

Bug Bounty Journey — Valid Report Part 5

The AWS Cognito user pool allowed an authenticated user to change their email address via the AWS CLI to an unverified address, and the web application then skipped the email verification check, allowing login. This could let an attacker bypass email verification, though the text does not claim full account takeover.

medium.com

Published on medium.com

In this journey, I will share my experience with a valid report I submitted. This will be a series until I discover new vulnerabilities. 😊 Let’s begin!

0xF3r4t, on medium.com

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 the application relied on Cognito's email attribute without enforcing email verification after a change made directly through the Cognito API.

Impact

An attacker could bypass email verification and log in with an unverified email address, but the text does not demonstrate account takeover.

What the attacker needed

A free account; access to AWS CLI; knowledge of the Cognito region

The fix

The application should enforce email verification after any email change, including changes made directly via the Cognito API.

How it was found

  1. Register an account on the target subdomain.
  2. Capture the access token from Burp Suite history.
  3. Use the AWS CLI to view user attributes with the access token.
  4. Use the AWS CLI to update the email attribute to an unverified address.
  5. Log in successfully despite the unverified email.

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.

AWS Cognito is a service that handles user sign-up and login for apps. The app trusted Cognito's user attributes but did not check whether the new email was verified before letting the user log in. This meant someone could set an unverified email and still access the account.

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.

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.