Skip to content
Info disclosure Write-up Intermediate

Critical ATO to P5 ‘Informational’: A Lesson in Threat Models & Bug Bounty Reality

The platform stored each user's plaintext seven-word master passphrase inside a client-side Flask session cookie, which is only signed and not encrypted. Anyone who obtained the cookie, for example through device access or malware, could decode it and recover the credential to log in and read the user's confidential communications.

infosecwriteups.com

Published on infosecwriteups.com

Hello Hackers! Today, I want to share a recent bug bounty experience.

Hacker MD, 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 developers placed the sensitive master credential into a client-side session cookie, which Flask signs but does not encrypt, so the value stays readable to anyone who holds the cookie.

Impact

An attacker with access to the device, malware, or a forensic image could extract the passphrase and take over the account, reading confidential communications and deanonymising the source; the triage team argued this required device compromise and rated it informational.

What the attacker needed

Access to the victim's device or cookie; ability to decode the cookie

How it was found

  1. Review the source code handling account creation and session management.
  2. Notice the plaintext master passphrase being placed into the session cookie.
  3. Copy the session cookie from the browser developer tools.
  4. Decode and decompress the cookie with a short script to reveal the passphrase.

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 cookie is a small piece of data a website stores in your browser and sends back on each visit. This site put the user's secret login passphrase inside that cookie, and although it was signed to stop tampering, it was not scrambled, so anyone holding the cookie could read the passphrase back out. With that passphrase, a person could sign in as the user and read their private messages.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.