Skip to content
Account takeover Write-up Beginner

How I Learned My Friend’s Favorite Lipstick Shade Without Asking — Compromising a Fashion Brand

The application accepted JWT tokens without verifying their signature, allowing an attacker to modify the token payload and impersonate other users. This enabled access to private wishlists and potentially full account takeover.

Krishnadev P Melevila Follow

Published on krishnadevpmelevila.medium.com

https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F7qmHptQvR1jUyz3pBZ%2Ftwitter%2Fiframe&displayname=Giphy&url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExd25kdHR0b21vbHBtbHg1ODNidnFuNGloN2N1MnpwcG9meXA5dGs4ayZlcD12MV9naWZzX3NlYXJjaCZjdD1n%2F7qmHptQvR1jUyz3pBZ%2Fgiphy.gif&im…

Krishnadev P Melevila, on krishnadevpmelevila.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

The application did not verify the JWT signature, trusting user-controlled claims without integrity checks.

Impact

An attacker could access another user's profile, private wishlists, saved addresses, order history, and account settings, and potentially take over any account by forging a valid-looking JWT.

What the attacker needed

A valid account on the platform; ability to intercept and modify HTTP requests

The fix

The issue was fixed after being responsibly disclosed through the bug bounty program.

How it was found

  1. Log in to the platform with a valid username and password.
  2. Obtain a JWT token from the login response.
  3. Remove the signature part of the JWT and resend the request; if it succeeds, the application is vulnerable.
  4. Decode the payload part of the JWT to see its contents.
  5. Change the uid parameter in the payload, re-encode the token, and send a request to the wishlist endpoint.
  6. Access another user's wishlist (the exact uid may need to be found using tools like Burp Intruder).

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.

A JWT is like a digital ID card that websites use to remember who you are. This site didn't check if the ID card was real, so anyone could change the name on it and pretend to be someone else. That let the attacker see other people's private wishlists and account details.

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 by Krishnadev P Melevila

View all

18 more disclosed reports, best first.

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.