Web app / SaaS: class L checklist
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.
This page continues Web app / SaaS. Read the main page first. This part holds the audit checklist items for class L.
Audit checklist
+ If it has an admin panel, file uploads, many users or a store app (L)
- Exact versions, 7-day rule, pinned images and actions
- What: Dependencies use exact versions (no
^or~); newly published versions wait at least 7 days before install (critical security fixes excepted, with a written reason and end date); Docker images are pinned by digest and CI actions by full commit ID; major upgrades are done one by one. - How to check: Read dependency files, Dockerfile and CI files; check the release dates of recent upgrades.
- Evidence: Dependency file lines; upgrade notes with release dates.
- What: Dependencies use exact versions (no
- Access to other users’ records is tested on every endpoint
- What: For each endpoint a test changes the identifier in the request and confirms the user cannot reach someone else’s data (IDOR/BOLA).
- How to check: List endpoints that take an ID; find the matching negative test for each.
- Evidence: Test names per endpoint.
- Customers’ data is separated
- What: In a multi-customer app every query is scoped to the customer; one customer cannot reach another’s data even with a guessed ID.
- How to check: Read the query layer for a mandatory customer filter or row-level rule; test with two customer accounts.
- Evidence: Cross-account test names.
- A role and permission matrix exists
- What: A written table says which role may do what, and the code enforces the same table on the server.
- How to check: Find the matrix and compare it with the permission checks.
- Evidence: Matrix document; test that walks the matrix.
- Rate limits are per account and tolerate shared IPs
- What: Limits are per account; unauthenticated endpoints also have IP limits, tuned for mobile carriers that put thousands of users behind one IP (CGNAT).
- How to check: Read the limiter configuration and thresholds; test many users from one IP.
- Evidence: Limit table; test results.
- Admin panel is locked down
- What: Two-step verification is required; roles and permissions are checked on the server; every admin action is written to an audit trail that cannot be deleted; user content shown in the panel is sanitized against XSS.
- How to check: Read the admin auth and role code; try an admin action and find its audit entry; try to delete the audit entry.
- Evidence: 2FA setting; audit table and its permissions; XSS test.
- Admins cannot read private user content
- What: Staff and moderators have no way to read users’ private content (messages, notes, spending); what they can see is limited and every view is logged; passwords are never visible.
- How to check: Read the admin routes and queries; search for tables with private content in admin code.
- Evidence: List of admin-visible fields; audit log of views.
- CSRF, CORS, security headers and mass assignment are handled
- What: CSRF protection is on; CORS has an allow list; security headers (HSTS, nosniff, CSP, frame ban, Referrer-Policy) are set; extra fields in request bodies cannot change privileged state.
- How to check: Request the site and read headers; send an unexpected field such as
rolein a request body; read the CORS configuration. - Evidence: Header output; test for the extra field; CORS list.
- Uploads follow identity → permission → rate limit → receive
- What: An upload is accepted only after identity, permission and rate limit checks; unauthorized request bodies are never written to disk; files are not held in memory; size and type are checked on the server; image bombs and disguised files are tested.
- How to check: Read the upload handler order; send an oversized file, a renamed executable and a huge image.
- Evidence: Handler code; test results.
- No “check then write” races
- What: State changes use conditional updates; counters are incremented in the database, not read and rewritten in code.
- How to check: Search for read-then-update patterns on balances, counters and status fields.
- Evidence: Code showing conditional updates; concurrency test.
- Every external call has a time limit
- What: Database queries, storage, e-mail, notifications, AI calls and external processes all have an upper time limit.
- How to check: Search for HTTP client and process calls without a timeout setting.
- Evidence: Configuration or code lines with timeouts.
- Schema changes use a migration ledger
- What: Schema changes are numbered, hand-written files; applied files are never edited or deleted; automatic schema sync is never run on a database with data.
- How to check: Look at the migrations folder history; search scripts for automatic sync commands (for example
drizzle-kit push). - Evidence: Migration folder; absence of sync commands in deploy scripts.
- Lists use cursor pagination and indexes are checked
- What: Every list is paginated by cursor (no OFFSET, no unbounded queries); new queries are checked with
EXPLAIN; indexes are added to both schema and migration. - How to check: Search for
OFFSETand queries withoutLIMIT; look for EXPLAIN notes; compare schema and migration indexes. - Evidence: Endpoint list with cursor parameters; EXPLAIN output for new queries.
- What: Every list is paginated by cursor (no OFFSET, no unbounded queries); new queries are checked with
- Payments go through a provider, and webhooks are verified
- What: Card data never touches your server; payment status changes come from signed provider webhooks that are verified and processed once (idempotent).
- How to check: Search for card number handling; read the webhook handler for signature check and duplicate handling.
- Evidence: Handler code; duplicate webhook test.
- Server-side requests to user-supplied addresses are restricted
- What: If the server fetches a URL given by a user (previews, imports, webhooks), it blocks internal addresses and uses an allow list.
- How to check: Search for server-side fetch calls that take user input; try
http://127.0.0.1and cloud metadata addresses. - Evidence: Code with allow list; blocked-request test.
- Unknown or missing settings stop the process
- What: The process refuses to start with an unrecognized environment value or a missing required setting; there is no silent fallback; checks ask “is this development or test?” rather than “is this not production?”; endpoint groups can be locked by a single feature-lock file.
- How to check: Start the app with a missing required variable and a wrong environment name; read the lock file.
- Evidence: Startup failure message; lock file.
- Container is hardened and stateless
- What: Multi-stage image, non-root user, base image pinned by digest, health check endpoint; runtime versions identical in CI, local and production; no state in the container disk (sessions and files live in the database or object storage).
- How to check: Read the Dockerfile; run
docker inspectfor the user; look for files written to the container disk. - Evidence: Dockerfile lines; health endpoint response.
- Encrypted backups sit with another provider, and code is copied
- What: Backups are encrypted and kept in a different provider or account so a compromised main account cannot delete them; object storage has versioning or backup; backups run as a separate service with failure alarms; a full copy of the code (all branches, history) is delivered to the owner regularly.
- How to check: Read backup configuration, destination account and alarms; find the last code copy.
- Evidence: Backup destination; alarm rule; date of last code copy.
- End-to-end tests, short CI run, guards, screenshot checks
- What: End-to-end tests exist; a short run happens in CI; guards (tests that enforce rules) protect important rules; screen checks cover both themes and all languages; new end-to-end tests pass three runs in a row before merging; a red test is fixed in code, never silenced.
- How to check: Read the CI file and test folders; look for skipped tests and quarantined guards.
- Evidence: CI run, guard inventory, three-run log.
- Limits and capacities are listed in one place
- What: Every rate limit and capacity is in one list: value, window, capacity reasoning, what an attacker could do, side effects.
- How to check: Find the inventory document and compare it with limiter code.
- Evidence: Inventory document.
- Industry standard list (S1–S16) is kept and “busy” is handled correctly
- What: A list of standard mechanisms (retries with backoff and jitter, idempotency keys, early load shedding, timeouts, circuit breaker, caching, background job guarantees, graceful shutdown, rate limits, security headers, monitoring, bounded queues, one error path, compression) with a status per item; capacity problems return 429 or 503 with Retry-After, never 500.
- How to check: Find the list; test overload and read the status code and headers.
- Evidence: List with status; overload test output.
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