Skip to content
Info disclosure Write-up Beginner

Full Credit Card Data in SessionStorage: A Real-World Web Securit

The application stored full credit card details, CVV, driver's licence number, plaintext password and personal data in browser sessionStorage. Any JavaScript in the page context, such as a malicious extension or future XSS, could read and exfiltrate this data.

Patryk Kieszek Follow

Published on medium.com

A real-world disclosure of a critical web security flaw: full credit card details, login credentials, and government-issued ID numbers stored in plaintext in the browser’s memory. Discovered and responsibly disclosed via a public Vulnerability Disclosure Program (VDP) on HackerOne.

Patryk Kieszek, 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 copied sensitive server-side profile and payment fields into client-side sessionStorage in plaintext instead of keeping them on the server or encrypting them.

Impact

An attacker with any JavaScript execution in the session, such as a malicious extension or a future XSS, could silently steal card data, credentials and identity details; the vendor argued it was only self-XSS and not directly exploitable.

What the attacker needed

Victim logged in; JavaScript runs in page context; malicious extension or XSS

The fix

Sensitive payment and identity data should not be stored in client-side storage at all; it should stay server-side and be handled under PCI DSS rules.

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 can keep information in your browser's memory so pages load faster. Here the site put very private things there, like your card number and password, without scrambling them. Any other code running on that page, including a bad browser add-on, can read that memory and send it to an attacker.

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.