Apps and websites · Interactive guide

Before you launch your app.

25 checks to go from “it seems to work” to a review backed by evidence.

Learn what to review, where to look and how to decide whether a point is solved.

For people who build web and mobile apps. what to look at, how to try to break it and what evidence I'd accept before ticking it off.

Every check needs evidence.
  1. Decide whether it applies. Based on your app's features and data.
  2. Run the check. Write down the environment, the result and the date.
  3. Decide the next step. Checked, to fix, or doesn't apply, with a reason.

0 of 25 checked

Open in Notion (in Spanish)
How your review is saved

Your progress records your decisions. It doesn't certify security, accessibility or legal compliance.

States and notes are saved in this browser when it allows it. “Download my copy” creates an HTML file with your work so you can open it on another device. After editing it, download a new copy: the previous file isn't overwritten. Don't include personal data or credentials.

25 checks

01Data

RLS on exposed tables

stops an exposed table from ignoring the boundaries between users
Pending

When it appliesExposed Supabase/Postgres

What you're checkingTables reachable from the Data API have RLS and explicit policies for the allowed operations. A table that's never exposed can use a different access boundary.

Quick test

Create two test accounts. Create a record with one. Try to read, modify and delete it using the other.

It passes if

The second account can't access or alter the record, and the first one's legitimate operations still work.

If you use Supabase or Expo

Turning on RLS without policies doesn't set up permissions: it leaves the table closed to the publishable key. Also review views and functions, which can bypass what you expect.

Technical detail

An inventory of exposed tables and their policies, one per operation:

select schemaname, tablename, rowsecurity
from pg_tables
where schemaname in ('public')
order by tablename;

select schemaname, tablename, policyname, cmd, roles, qual, with_check
from pg_policies
where schemaname in ('public')
order by tablename, cmd, policyname;

Adapt the list of schemas to the ones your API exposes. Then repeat the tests as anonymous and as an authenticated user for all four operations.

Evidence I accept: a complete inventory, policies per operation and tests that prove what's allowed and what's denied.

02Data

An explicit access rule per record

getting an id doesn't make that object yours
Pending

When it appliesWeb and mobile

What you're checkingEvery record has a rule for who can read, change or delete it. The rule can be an owner, a team, a tenant, a role or a shared relationship.

Quick test

With account B, repeat every operation that accepts the id of one of A's objects: read, edit, delete, download, upload an attached file and share.

It passes if

B gets a safe response and A's object doesn't change.

Technical detail

An unpredictable UUID helps against enumeration, but it isn't authorization: if the id leaks in a listing, a log or a URL, the control has to keep standing.

Repeat the test with ids taken from listings, logs and URLs, not just the ones your own interface gives you.

Evidence I accept: negative tests per object and operation.

03Data

The client only writes the allowed fields

hiding a field in the interface doesn't stop it being sent
Pending

When it appliesWeb and mobile

What you're checkingThe server builds the write from a list of allowed fields. Fields like role, owner_id, is_pro, credits, prices or internal states are calculated or authorized on the server.

Quick test

Intercept a legitimate request and add sensitive or unknown fields. Also try null, arrays, nested objects and alternative names.

It passes if

The server deliberately ignores or rejects those fields, and the record doesn't change.

Technical detail

It's mass assignment, now part of API3:2023. The classic symptom is a PATCH that accepts any property that arrives.

Evidence I accept: an explicit input schema and a test proving that an unauthorized property doesn't modify the record.

Check the source

OWASP API3:2023
04Data

Every response returns only what's needed

what doesn't show on screen is still in the response
Pending

When it appliesWeb and mobile

What you're checkingAuthorization also applies when reading properties. The API returns the fields that are needed, not the whole row for the client to hide the rest.

Quick test

Save the real response for each role and compare it with the output contract you expect. Look at REST, GraphQL, exports, analytics, notifications and errors.

It passes if

No response includes email, internal flags, tokens or metadata that role shouldn't see.

Technical detail

Evidence I accept: a response schema per endpoint and tests that fail if a disallowed property shows up.

Check the source

OWASP API3:2023
05Secrets

The public key can go in the client; the secret one can't

a key designed to be distributed isn't a secret
Pending

When it appliesWeb and mobile

What you're checkingA publishable or public key lives in the client because it doesn't grant privileges on its own. A secret key, or one that can bypass controls, lives only in infrastructure you control.

Quick test

Inventory the keys per provider and classify them with their documentation. Look for privileged key names in client code, native configuration, builds, logs and source maps.

It passes if

No privileged credential shows up in an artefact the user receives.

If you use Supabase or Expo

In Supabase, what protects the client is Auth, RLS and per-object authorization, not hiding the publishable key.

Technical detail

Don't paste real values into shared commands or screenshots.

Evidence I accept: an inventory with type, scope, location, owner and rotation date.

Check the source

Supabase · API keys
06Secrets

Everything compiled into the client counts as public

a .env doesn't make secret what the bundler puts inside the app
Pending

When it appliesWeb and mobile

What you're checkingA .env saves you from hardcoding configuration. It doesn't turn into a secret a value that ends up compiled into what the user downloads.

Quick test

Look for the public variables in the code, and also review the build, not just the versioned files.

It passes if

No privileged operation depends on a credential that travels to the client.

If you use Supabase or Expo

Expo spells it out: EXPO_PUBLIC_ variables are visible in plain text in the compiled app.

Technical detail
rg -n "EXPO_PUBLIC_|NEXT_PUBLIC_|VITE_" . \
  -g '!node_modules' -g '!dist' -g '!build'

Classify every result: a URL or a key meant to be public can be fine there. If an operation needs a secret, what moves to the server is the operation, not just the key.

Evidence I accept: a review of the final build.

07Secrets

A leaked credential gets revoked or rotated first

deleting it in a commit doesn't delete it from the history
Pending

When it appliesWeb and mobile

What you're checkingRewriting history doesn't invalidate a credential. First you take away its ability to access, from the provider. Then you decide whether the history needs cleaning.

Quick test

Check in the provider that the old credential no longer authenticates. Then search for the pattern in the history, the branches and the tags.

It passes if

The old credential doesn't authenticate, the new one is deployed, and the decision about cleaning the history is written down.

Technical detail
git log --all --oneline --decorate
git log --all -S 'NON_SENSITIVE_NAME_OR_FRAGMENT' --oneline

GitHub says it in that order: revoking or rotating is the first step, and once that's done, rewriting the history may not be necessary. If the secret stayed exposed in clones, forks or cached views, a rebase won't fix that.

Don't publish the value while you're searching for it.

08Identity

Every non-public endpoint authenticates and authorizes

authenticating says who you are; authorizing says whether you can do this
Pending

When it appliesWeb and mobile

What you're checkingFor any resource that isn't public, the server identifies the caller and checks whether they can perform that action on that resource.

Quick test

Test every route with no credential, with an invalid one, with an expired one, with another user's and with an insufficient role.

It passes if

Without valid credentials it returns 401. With valid credentials but insufficient permissions it returns 403 or, if it's been decided to hide the resource's existence, 404. In no case does it hand over data or perform the action.

Technical detail

Not every endpoint has a login: one can be public on purpose, a webhook verifies a signature, a cron uses a secret or a service identity, and a shared link uses a limited token. What there can't be is a route without an intentional policy.

Evidence I accept: an endpoint matrix by actor and action, with automated negative tests.

09Identity

The session doesn't live where any script can read it

the right answer depends on the surface, there's no single recipe
Pending

When it appliesWeb and mobile

What you're checkingWhere you keep the token decides who can read it if you get an XSS. On the web, localStorage is reachable from same-origin JavaScript.

Quick test

On the web, inspect storage and cookies, and test logout, expiry, refresh and revocation. On mobile, review the real storage implementation and the backup policy.

It passes if

On the web, the session token isn't available to JavaScript when the architecture uses an HttpOnly cookie. Logout revokes the session or prevents its renewal, the access token expires according to a documented policy, and refresh, expiry and revocation behave as you expect.

Technical detail

On the web: a cookie with HttpOnly, Secure and the right SameSite. HttpOnly stops JavaScript reading it, but the browser still sends it, so CSRF comes into play.

On mobile: Keychain on iOS or Keystore on Android, through a secure abstraction, and deciding whether it goes into the backup.

Evidence I accept: the documented location and lifecycle tests, with no tokens printed in logs.

10Identity

Passwords are delegated or stored properly

if you store them yourself, the algorithm matters
Pending

When it appliesWeb and mobile

What you're checkingEither you delegate credentials to an identity provider, and then you keep no copy, or you store them with a password hashing algorithm.

Quick test

Identify who receives and stores the password. If it's your server, review the algorithm, parameters, salt, migration of old hashes and that it doesn't show up in logs.

It passes if

No password is stored in plain text or reversibly encrypted, and the change and recovery flows work.

Technical detail

OWASP puts Argon2id first, with minimum parameters worth reviewing every so often, then scrypt, and bcrypt only for legacy, with its 72-byte limit.

If you use a provider, the right thing is precisely not to hash anything yourself.

11Identity

There's a second factor where the risk calls for it

not for everyone all the time: for what hurts
Pending

When it appliesDepending on risk

What you're checkingA second factor is available and required for privileged accounts and high-impact operations, depending on the risk. Account recovery has its own controls and doesn't allow skipping the second factor without equivalent verification.

Quick test

List the high-impact operations and define when you ask for re-authentication or step-up. Test enrolment, losing and replacing the factor, recovery codes and attempts to turn recovery into a bypass.

It passes if

An old or weak session doesn't perform an action that requires step-up.

Technical detail

A social provider can apply its own factors, and even so your app still has to protect identity and session changes.

Evidence I accept: the written policy by risk and proof that step-up really gets applied.

12Input and output

The validation that protects you lives on the server

the client's is user experience, not a control
Pending

When it appliesWeb and mobile

What you're checkingThe server validates structure, type, length, range, format and business rules. A list of what's allowed is usually safer than trying to enumerate what's bad.

Quick test

Send out-of-range values, wrong types, extra fields, odd Unicode, large payloads and impossible states directly. Do it against staging.

It passes if

It returns a controlled error and doesn't leave the record half-written.

Technical detail

Validation doesn't prevent XSS on its own: that's point 14, and they're different things used together.

Evidence I accept: the schema running at the trust boundary and negative tests.

13Input and output

Parameterized queries, and an allowlist for what can't be parameterized

table and column names don't take parameters
Pending

When it appliesWeb and mobile

What you're checkingValues travel as prepared parameters. Table names, column names and ordering can't be parameterized, so they come out of the input or get mapped from a fixed list.

Quick test

Look for dynamic SQL, template strings and EXECUTE, and review every concatenation by hand. Test quotes and operators in staging.

It passes if

No query builds SQL with text that comes from the user.

Technical detail
rg -n "EXECUTE|query\(|raw\(|SELECT .*\$\{|ORDER BY.*\$\{" . \
  -g '!node_modules'

The search gives you candidates, not a verdict: every result gets looked at.

Evidence I accept: parameterized queries or explicit identifier mapping, plus injection tests.

14Input and output

The protection goes exactly where you use the data

validation, encoding, sanitization and safe sinks aren't the same thing
Pending

When it appliesWeb and mobile

What you're checkingEvery destination has its defense. Text in HTML, an attribute, a URL or allowed HTML aren't protected the same way, and using the wrong destination's protection opens the hole.

Quick test

Inventory where user content gets rendered and test each place with a harmless payload that tells you whether it's interpreted as code or as text.

It passes if

The payload shows up as text, doesn't run, and the HTML you do allow goes through sanitization.

Technical detail

As a quick map: text in HTML goes with textContent; a harmless, fixed attribute, with safe binding or setAttribute; a URL parameter, validating the destination and encoding the parameter; and HTML you accept on purpose, sanitized.

In React or React Native the framework already encodes in most places. The real risk is in dangerouslySetInnerHTML, in innerHTML and in the WebView.

There are contexts better not used even if you know how to encode them, like putting user data inside inline JavaScript.

Check the source

OWASP · XSS Prevention
15Input and output

The URL the user pastes gets validated before every access

and again at every redirect, not just the first one
Pending

When it appliesIf you accept URLs

What you're checkingIf your server opens a URL the user chooses, there's an SSRF risk. You check the scheme, the destination and the IP it resolves to.

Quick test

Test `localhost`, private IPs, odd IP formats, credentials inside the URL, a public domain that resolves to an internal IP, and redirect chains.

It passes if

Disallowed destinations are blocked after resolving DNS, the connection doesn't end up at a different IP that wasn't validated, and the full check is repeated at every redirect.

Technical detail

Block loopback, private ranges, link-local and your cloud provider's metadata endpoints unless you have an explicit reason.

Normalize and check every A and AAAA address, including IPv4 and IPv6. Stop the connection from resolving the domain again to an IP you haven't validated: use an implementation built for SSRF, or connect to the validated address while correctly preserving Host and SNI. Turn off automatic redirects or repeat the full check at every hop.

If the use case allows it, a domain allowlist is easier to defend than a blocklist.

Check the source

OWASP · SSRF Prevention
16Input and output

Uploads have several barriers, not one

the client sets the Content-Type, so it proves nothing
Pending

When it appliesIf you accept files

What you're checkingAllowed extensions, limited size and number, a name generated by the server, storage kept separate from delivery, and authorization both on upload and on read.

Quick test

Try a double extension, a fake MIME type, a huge file, a name with ../, a name collision, active content and uploading to another account's folder.

It passes if

Every test is rejected or neutralized according to an explicit policy, doesn't allow running active content, doesn't overwrite files and never grants access to another account's folder or files.

Technical detail

OWASP says it plainly: no technique is enough on its own. Validate the signature or content where it applies, and scan risky files if your case calls for it.

Evidence I accept: tests per layer and the authorization check on read, not just on write.

Check the source

OWASP · File Upload
17Cost and actions

There are limits on everything that costs money or resources

per user or client and per operation, as well as per IP
Pending

When it appliesWeb and mobile

What you're checkingEvery operation that uses money or resources has a ceiling on the server: AI, emails, OTPs, files, processing, expensive searches and exports.

Quick test

Fire a burst of calls at the same operation with the same user. Repeat with several accounts and with concurrency.

It passes if

Past the limit it answers 429 or degrades safely, and the maximum cost of the window is capped.

Technical detail

Rate limiting isn't just requests per IP: one IP can be a whole school and an attacker can have a thousand. The useful limit combines identity, session, device, tenant and operation.

Evidence I accept: a budget per operation and a test that proves the ceiling.

18Cost and actions

Automatable flows have an anti-abuse defense

a CAPTCHA is one layer, not the solution
Pending

When it appliesWeb and mobile

What you're checkingSign-up, OTPs, recovery and invitations combine limits and abuse signals. Depending on the risk, a suspicious request gets a challenge or an extra verification that's validated on the server.

Quick test

Try to automate and repeat the flow. When the policy requires a challenge, also try skipping it and sending a reused, tampered or expired token.

It passes if

Repeated abuse gets limited and logged. When the risk requires a challenge, the server rejects missing, invalid, reused or expired tokens without needlessly blocking every user.

Technical detail

When the provider allows it, also validate the token's hostname, action and validity.

19Cost and actions

A verification failure doesn't grant new access

failing closed means giving nothing new, not taking away what was already granted
Pending

When it appliesIf you take payments

What you're checkingThe price, the product and the status are validated on the server with data from the provider. If you can't verify a new purchase, you don't grant it.

Quick test

Simulate a tampered response, a duplicate event, an out-of-order one, an invalid signature, a timeout and a replay.

It passes if

No unverified event creates new access, duplicates don't duplicate effects, and an already verified user keeps what's theirs during an outage.

Technical detail

For someone already verified, respect the last confirmed status and the provider's cycle, including grace periods. Removing access because the verifier doesn't answer is the opposite mistake.

Evidence I accept: idempotency and a later reconciliation.

20Cost and actions

The AI doesn't carry out high-impact actions just because it's asked to

a system prompt isn't a barrier
Pending

When it appliesIf the AI carries out actions

What you're checkingThe model proposes, and a layer you control validates identity, permission, resource, parameters and state before executing.

Quick test

Try prompt injection, changing the target id, repeating an approval, widening the scope and executing with an insufficient user.

It passes if

The execution layer denies the action even if the model asks for it.

Technical detail

Destructive, financial, administrative or outward-facing operations need limited scope and, depending on the risk, a confirmation tied to the exact action. Not every delete needs a modal.

Evidence I accept: server-side authorization per action and resource, short-lived approval tokens, idempotency and a trace.

21Web

Restricted CORS, and nothing public by accident

CORS is a browser thing: curl doesn't obey it
Pending

When it appliesWeb

What you're checkingCORS decides which origins can read a response from a browser. It doesn't authenticate, and it doesn't stop curl, a mobile app or a server-to-server call.

Quick test

Test an allowed origin and a disallowed one from the browser. Repeat the same call with curl. Then test the real control with no credentials and with another user's.

It passes if

Private resources deny access wherever the request comes from. Without valid credentials they answer 401; with insufficient permissions, 403 or a deliberate 404 to hide the resource's existence. CORS allows only the origins intended for each resource.

Technical detail

What is a failure of this layer is accidentally exposing an endpoint, a bucket, a dashboard, a debug route or a file. A resource can be public on purpose; the problem is the one that's public by oversight.

Review buckets and public routes from an inventory, not from memory.

22Web

Current headers, not inherited recipes

there are three you remove, not add
Pending

When it appliesWeb

What you're checkingYou configure and test the headers that are useful for your surface: CSP, HSTS, X-Content-Type-Options, Referrer-Policy and secure cookies.

Quick test

Look at the headers on the deployed response, route by route.

It passes if

The headers you expect are there, the CSP doesn't break the product, and the obsolete ones don't show up.

Technical detail
curl -sS -D - -o /dev/null https://YOUR-STAGING-DOMAIN.example

OWASP recommends not setting X-XSS-Protection or setting it to 0, and marks Expect-CT and Public-Key-Pins as obsolete.

An API that only returns JSON doesn't get the same out of every header as an interactive page. And HSTS is only validated over HTTPS: think before adding includeSubDomains.

23Operations

Public errors don't give away anything internal

the detail goes to the log, not the response
Pending

When it appliesWeb and mobile

What you're checkingThe client gets a stable message and code. The detail for investigating stays in protected logs, correlated with an identifier.

Quick test

Trigger validation errors, auth errors, database errors, a timeout and an external provider failure. Look at the body, the headers, the interface and the logs.

It passes if

No public response returns stack traces, SQL, paths, secrets or internal names. Authentication and recovery flows don't reveal whether an account exists through the message, the HTTP code, the response size or avoidable timing differences either.

Technical detail

Also look at subtle differences: a different message for “that email doesn't exist” and for “wrong password” is an account enumerator.

Check the source

OWASP · Error Handling
24Operations

Important events generate logs and tested alerts

logging isn't alerting
Pending

When it appliesWeb and mobile

What you're checkingYou define which events you log, with what severity and fields, for how long, who sees them, and which threshold triggers an alert to someone who can act.

Quick test

Generate a known event in staging: several authorization failures in a row, a usage spike, an invalid signature or a denied destructive action.

It passes if

The event shows up, the alert arrives, and you know how long it took and where it went.

Technical detail

Don't log passwords, tokens, keys or personal data you don't need.

A weekly report doesn't count as an alert. And an alert without a runbook next to it reaches someone who doesn't know what to do with it.

Check the source

OWASP · Logging
25Operations

Restore rehearsed and deletion checked

they're two separate checks and they're ticked off separately
Pending

When it appliesWeb and mobile

What you're checkingHaving backups describes a configuration. The evidence is having restored. And deletion gets checked on every surface where there's data.

Quick test

25A: restore a backup to an isolated environment following your provider's documentation. 25B: create a test account with data on every surface, run the deletion on it and then search for it by known identifiers.

It passes if

25A: the backup restores, the data adds up and the critical flows work. 25B: the data that had to be deleted is gone or has been irreversibly anonymized in the live systems. Any data kept because of a documented obligation or exception has a limited purpose, access and retention. Whatever temporarily remains in backups has a written retention and a procedure that stops it coming back when you restore.

Technical detail

25A · Measure RPO and RTO, check integrity and note which systems aren't in the main backup: objects, secrets, external providers. Don't overwrite production to test it.

25B · Document when data disappears from backups and how you avoid bringing back deleted data if you ever restore. The right to erasure has exceptions: it doesn't mean deleting any data in any circumstance.

Evidence I accept: date, backup used, environment, duration, checks run and cleanup afterwards.

25A · Restore

25B · Deletion

The combined status is worked out from both checks. If one fails, it's to fix; if one is missing, it's pending.

If you only have 15 minutes

start with what can expose data, grant permissions, run up costs or carry out irreversible actions:

it's not a universal priority list. it's a quick route by impact for a typical app.

How to use this guide

For each point keep four things: the scope, the test you ran, the result you expected and the evidence.

States: passes, fails, doesn't apply with the reason written down, and unverified. “Looks right” isn't a state.

Don't run destructive, load or abuse tests against production or use other people's data. Do them in staging with fixtures and accounts you control. In production, limit the check to authorized, controlled and non-destructive tests.

On the cards, “Checked” means passes, “To fix” means fails and “Pending” means unverified.

this doesn't certify that an app is secure and it doesn't replace an audit or a threat model.

you don't have to read all of it. start with the cards, mark what applies to you and open only the points you need to check.

What this list doesn't cover

Something not being among the 25 doesn't mean it doesn't matter. This list prioritizes what fitted in the video's format. A full review may also need:

General sources

OWASP Top 10:2025

OWASP Cheat Sheet Series

OWASP API Security Top 10:2023

a check doesn't get ticked because the file exists or because a tool says “done”.

it gets ticked when you know what you tried, what happened and what evidence you kept.