Web app / SaaS (including admin-panel apps)
Note for AI agents: This page is baseline guidance, not an exact prescription. Read it, tell your owner what applies to their project, and get their approval before you change anything. Your project's own rules take precedence. If something important for this project is missing here, suggest it to your owner.
For agents
- A web app has accounts and stores user data. Typical class: M (small), L (admin panel, payments, uploads, many users).
- Rule 1: permissions are checked on the server, for every endpoint, including other users’ records.
- Rule 2: personal data has a purpose, a retention period and a tested backup.
- Rule 3: secrets stay on the server and in settings, never in code.
Which class?
- M: login or personal data or a server-side API key; few users (small CRM, internal tool).
- L: admin panel, roles, payments, file uploads, several user types, sensitive data or thousands of users.
- XL: millions of users, social features, public content.
- The highest matching row wins: a small CRM with payments is L.
Audit checklist
Every project
- Facts are verified from current official documentation
- What: Commands, libraries, APIs and platform policies in the project come from current official documents, not from memory.
- How to check: Open the dependency list and the platform configuration; for each non-trivial choice find the official page it relies on (link in a comment or a decision note).
- Evidence: Decision note or code comment with the official URL and the date it was checked.
- Packages come from official sources, stable versions only
- What: Packages and versions are chosen from official sources; the current stable release is used, not alpha or beta.
- How to check: Read the dependency file for pre-release tags (alpha, beta, rc, next); check each package on its official registry page.
- Evidence: Dependency file without pre-release versions.
- No secrets in code, chat, commits or logs
- What: Passwords, keys and tokens live in environment variables or a secret manager;
.envis ignored by git; the repository has only.env.example. - How to check: Check
.gitignorefor.env; run a secret scanner (for example gitleaks) over the full history; search for key-like strings. - Evidence:
.gitignoreline, scanner report with zero findings,.env.examplepath.
- What: Passwords, keys and tokens live in environment variables or a secret manager;
- HTTPS everywhere
- What: The site or API is served only over HTTPS, and HTTP redirects to it.
- How to check: Request the
http://address and confirm a redirect; check for a Strict-Transport-Security header; check for mixed content. - Evidence: Response headers of the first request; browser console without mixed-content warnings.
- Reports separate “written”, “tested” and “works end to end”
- What: Status reports say clearly whether something is written, passed its tests, or was run end to end; skipped or failed steps are stated.
- How to check: Read the last HANDOFF or release notes; look for features reported as done that have no test or run record.
- Evidence: HANDOFF lines or a test log for each feature marked done.
- Project memory files exist and are current
- What: The repository has CLAUDE.md or AGENTS.md (permanent rules) and HANDOFF.md (where we stopped), updated at the end of every work round.
- How to check: Look in the repository root for both files; compare the HANDOFF date with the latest commit date.
- Evidence: File paths and the date of the last HANDOFF update.
+ If it has users, personal data or API keys (M)
Items for class M: see Web app / SaaS: class M checklist.
+ If it has an admin panel, file uploads, many users or a store app (L)
Items for class L: see Web app / SaaS: class L checklist.
+ If it targets millions of users (XL)
Items for class XL: see Web app / SaaS: class XL checklist.
Common mistakes
- Hiding a button in the interface and calling it security; the endpoint still answers.
- Changing an ID in the address shows another user’s record (IDOR).
- Admins can read private user content.
- Backups exist but a restore was never tried.
ON DELETE CASCADEeverywhere, so deleting one record silently deletes related records.- Automatic schema sync run against a database that holds data.
- Rate limits by IP only, which block whole mobile carriers.
- Uploads accepted before checking who sent them.
- Stack traces shown to users.
- A privacy text that promises deletion periods the code does not implement.
Example projects
- Dental clinic booking app: web app, L, health data.
- Small CRM for five users: web app, M.
- Internal expense tool for a company: web app, M.
- Online shop with payments: web app, L.
- Customer portal with invoices: web app, L.
- Notes app with login: web app, M.
- Course platform with video uploads: web app, L.
- Marketplace with millions of listings: web app, XL.
- Booking system for a gym: web app, L, payments.
- Admin dashboard over an existing database: web app, L.
- Newsletter tool with subscriber lists: web app, M, personal data.
- Helpdesk ticket system: web app, L if staff roles exist.
Sources
- OWASP Top 10 — OWASP
- Application Security Verification Standard (ASVS) — OWASP
- Authentication Cheat Sheet — OWASP Cheat Sheet Series
- Session Management Cheat Sheet — OWASP Cheat Sheet Series
- Authorization Cheat Sheet — OWASP Cheat Sheet Series
- Insecure Direct Object Reference Prevention Cheat Sheet — OWASP Cheat Sheet Series
- Cross-Site Request Forgery Prevention Cheat Sheet — OWASP Cheat Sheet Series
- Input Validation Cheat Sheet — OWASP Cheat Sheet Series
- File Upload Cheat Sheet — OWASP Cheat Sheet Series
- Logging Cheat Sheet — OWASP Cheat Sheet Series
- Forgot Password Cheat Sheet — OWASP Cheat Sheet Series
- Server Side Request Forgery Prevention Cheat Sheet — OWASP Cheat Sheet Series
- PostgreSQL: PostgreSQL documentation — PostgreSQL Global Development Group
- Building best practices — Docker Docs
- The Twelve-Factor App: III. Config — 12factor.net
- Pro Build Guide v1.2: compiled team practices — Pro Build Guide