QuizzifyTech

Bug library › API testing

API testing · Users API

Profile API sends the password hash to the browser

P1 · CriticalIntermediateUsers API

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.

Spot this bug

The clue

Some fields should never leave the server.

Steps to reproduce

  1. Sign in
  2. Call GET /api/me and read every field in the response

Expected result

Only safe profile fields (id, name, email, created_at)

Actual result

The response also includes "password_hash"

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 API responses for fields the screen never shows. Hashes, tokens and internal flags often slip through.

How to find bugs like this

API bugs live in the JSON between the app and the server: wrong records returned, fields that leak private data, bad status codes and limits that are not enforced. When you test, try these checks:

  • Read the whole response body, not only the status code.
  • Ask for other users’ records on purpose.
  • Look for fields that should never leave the server.
  • Send values at and past every limit.

More API testing bugs

See all 158 bugs