Skip to content

Security

Stop trusting what the browser sends

The price, the user ID or the role comes from the request, so anyone can change it.

What you get
Every value the server should work out for itself found, fixed and tested with a tampered request.
Paste it into
Your AI tool, in your project
The prompt
Look for places where this app trusts data from the browser that it shouldn't.

Go through every API route and server action and list the inputs. Flag any that a user could change to their advantage: a price or total, a user or account ID, a role or plan, a discount, a record ID that isn't checked against its owner, or a "paid" or "verified" flag.

For each, change the server to work the value out from the signed-in session or the database, and validate the rest (type, length, allowed values) with the validation library the project already has. Then replay a tampered request for each fix, against a local or test setup and never production, and show me it's refused. If you find nothing, say so instead of inventing findings.

Use it

Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.

More in Security