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
Make file uploads safe
Users can upload anything of any size into a bucket that may be public.
Fix known security holes in your packages
The install prints a wall of vulnerability warnings and you’ve learned to ignore it.
Tighten headers, cookies and cross-origin rules
CORS was set to allow everything to make an error go away, and it stayed that way.
Check for script and database injection
User-written text is shown as HTML somewhere, or a query is built by gluing strings together.