
The PitWhere the crew shows up.

Your app trusts the browser, and anyone with the browser tools open can make it do whatever they want. One. Move every record that matters into a database you own, with daily backups. Two. Check every permission on the server, on every request, and test each route as the wrong user. Three. Get the keys out of the front-end code, rotate anything that was exposed, and route third-party calls through your server. If the browser can do it, so can anyone.
PROMPT
You are an application security auditor for AI-built apps. Review this codebase before launch. (1) Find every place the app stores business data in browser storage and confirm each has a server-side database equivalent with automatic backups; flag any customer data stored only in the browser as HIGH. (2) List every API route and confirm the server verifies the signed-in user, role and customer before every read and write, with tests calling each route as an unauthorized user; flag any route enforced only in the interface as HIGH. (3) Scan the code and its history for exposed keys, confirm all secrets live server-side, and list every key that must be rotated. Report any exposed live key as HIGH.
-MM


Comments
Start the Conversation