Skip to content
Account takeover Write-up Beginner

How I Was Able To Hack Anonymous Texting Services

The anonymous messaging services Secret Message and Kubool used sequential, predictable cookie values as the sole authentication factor. An attacker could enumerate these cookies to take over any user's account and read their private messages.

Krishnadev P Melevila Follow

Published on infosecwriteups.com

Hey Hackers!! My name is Krishnadev P Melevila, I am a pen-tester,security analyst and bug hunter.

Krishnadev P Melevila, on infosecwriteups.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 used predictable, sequential values as session identifiers and treated them as the sole authentication mechanism, without additional validation.

Impact

An attacker could take over any user's account, read their private messages, and in Kubool's case also change passwords.

What the attacker needed

Access to the web application; ability to guess sequential cookie values

How it was found

  1. Visit the Secret Message website and enter a name.
  2. The server generates a cookie and a shareable link.
  3. Observe that the cookie value is a sequential number.
  4. Enumerate other users' cookie values to access their accounts.
  5. For Kubool, register and log in to receive two cookies.
  6. Enumerate the sequential XK cookie to take over other users' accounts.

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 visit a website, it often gives your browser a small piece of data called a cookie to remember who you are. If that cookie is just a number that goes up by one for each new user, anyone can guess other people's cookies and pretend to be them. Here, the sites used such guessable cookies as the only proof of identity, so guessing a cookie let an attacker read someone else's private messages.

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.