Skip to content
Account takeover Write-up Intermediate

Abusing Predefined Cookies to Account Takeover in FlowCrypt

The billing login flow accepted a client-supplied UUID that was later used as the authentication cookie value, so an attacker could predefine the UUID for a victim's email and then set their own cookies to take over the victim's account after the victim clicked the emailed login link.

medium.com

Published on medium.com

In this blog post, I will be explaining how I was able to achieve account takeover in FlowCrypt website by abusing cookies that is preset during the billing process. The FlowCrypt team responded to my disclosure by fixing the vulnerability the same day.

sushiwushi, 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 server trusted a client-supplied UUID as the authentication secret and reused it directly as the auth_uuid cookie without binding it to a server-generated session.

Impact

An attacker could achieve full account takeover of a victim's FlowCrypt account after the victim clicked the emailed login link.

What the attacker needed

Attacker knows victim's email address; victim clicks the emailed login link

The fix

The vulnerability was fixed by the FlowCrypt team the same day it was reported.

How it was found

  1. The attacker enters the victim's email address in the billing login form.
  2. The attacker intercepts the request and copies the client-supplied uuid value.
  3. The victim receives and clicks the login link sent by the server.
  4. The attacker sets their auth_account cookie to the victim's email and auth_uuid cookie to the copied uuid.
  5. The attacker refreshes the page and gains access to the victim's account.

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.

When you log in, a website often gives your browser a cookie, a small piece of data that proves who you are. Here, the billing page let the person asking for a login email choose the secret value that would later be used as that proof. An attacker could pick the secret for someone else's email address, wait for that person to click the login link, and then use the same secret to pretend to be them.

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.