Web app security checklist: 12 things to check before you launch
Most security problems in small web apps are not clever attacks. They are ordinary gaps that nobody checked. Use this list before you go live, and again after big changes.
1. Sign-in and sessions
People should not be able to guess or reuse their way in.
- Store passwords hashed with a modern algorithm, never in plain text.
- Limit login attempts and lock or slow down repeated failures.
- Use secure cookies (Secure, HttpOnly, SameSite) and end the session on logout.
- Make password-reset links single-use and short-lived.
2. Access control
The most common serious bug: one customer can see or change another customer's data.
- Check on the server, for every request, that the signed-in user is allowed to see that record.
- Test it yourself: sign in as user A and change an ID in the address or request to one that belongs to user B.
- Hiding an admin page is not protection. Protect it with real checks.
3. Input handling
Treat everything that comes from a browser as untrusted.
- Validate on the server, not only in the browser.
- Use parameterised queries so input can never become part of a database command.
- Encode output so user text cannot run as a script on a page.
4. File uploads
Uploads are a favourite way in.
- Allow only the file types you need and limit the size.
- Store uploads away from the folder that runs code, and rename them.
- Never trust the file name or the type the browser reports.
5. APIs
Your API is part of your product and needs the same care as your pages.
- Require authentication on every endpoint that is not meant to be public.
- Return only the fields the caller needs.
- Add rate limits, and do not allow every website to call your API with logged-in cookies.
6. Secrets and configuration
Keys and passwords should never travel with your code.
- Keep secrets in environment settings or a secrets manager, not in the code or the repository.
- Never put a private key in front-end code, because anyone can read it.
- Use different keys for testing and for live, and replace any key that may have leaked.
7. Payments
Never let the browser tell you that a payment succeeded.
- Confirm payments on the server using the payment provider's signed notification.
- Calculate the price on the server, never trust an amount sent from the page.
- Make sure paying twice or replaying a request cannot create a second order.
8. HTTPS and headers
All traffic should be encrypted and browsers should be told to be careful.
- Serve everything over HTTPS and redirect plain HTTP.
- Add basic security headers such as a content security policy and protection against framing.
- Do not show server version details in responses.
9. Data protection
Keep less data, and protect what you keep.
- Collect only what you need.
- Encrypt sensitive data and make sure logs never contain passwords, tokens or full card details.
- Delete data you no longer need.
10. Dependencies
Old libraries have known holes.
- Keep packages up to date.
- Run a dependency scan and fix serious findings.
- Remove packages you no longer use.
11. Cloud settings
A secure app can still leak through a careless setting.
- No public storage buckets or open databases unless they are meant to be public.
- Give each service only the access it needs.
- Write and test your database access rules, so each user can reach only their own data.
12. Errors, logs and backups
Plan for the day something goes wrong.
- Show users a simple error, not a technical stack trace.
- Log sign-ins and failures so you can see what happened.
- Back up your data and test a restore at least once.
Want us to test it for you?
We test web apps, APIs and mobile apps with your written permission, and send a plain-language report with fixes.
Request a security test