API testing · Auth API
Login API is called over plain http, so the password travels unencrypted
P1 · CriticalBeginnerAuth 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.
The clue
Look closely at the address.
Steps to reproduce
- Sign in on the app
- Watch the login request in the network log
Expected result
https:// only, and http requests are refused or redirected
Actual result
POST http://api.shopnest.in/v1/login with the password in the body
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 the scheme of every request that carries passwords, tokens or personal data. It must be https.
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.