Database testing · Users table
One user’s password is stored as plain text
P1 · CriticalIntermediateUsers table
Want to find it yourself first? This page gives away the answer. Play this bug on a fake app screen and see if you can spot it in three tries.
The clue
Some columns should be unreadable even to the database admin.
Steps to reproduce
- Reset a password through the old reset flow
- Query the users table
Expected result
Every password stored as a hash, like $2b$12$…
Actual result
User 2 has the plain password Riya@1996
Why it matters
This is a critical (P1) bug. It can lose money, expose private data or stop people from finishing a key task. A bug like this should block a release and be fixed straight away.
Testing tip
Check every path that writes passwords: sign-up, reset, admin tools and imports. One missed path is enough.
How to find bugs like this
Database bugs show up when you look at the tables: duplicate rows, joins that double totals, deleted users still active, values cut short or saved in the wrong type. When you test, try these checks:
- Run the query yourself and count the rows.
- Look for duplicates that differ only in case or spaces.
- Check deleted and archived records.
- Compare stored values with what the user typed.