Back to blog
Security SaaS OWASP Access Control Web Development

Understanding Security in Your SaaS

By Ken B Portfolio · Published on October 29, 2026
Illustration of a developer working at a laptop

One customer reading another customer’s invoices. A test login left on in the live app. A bot running up your AI bill. No scanner flags these, and any one of them can cost you a customer’s trust.

Most security guides start with tools. Tools are the easy part. The hard part is knowing what you are testing for. A scanner can tell you a package is old. It cannot tell you that one customer can read another customer’s invoices.

This page is the “what” behind my security audit toolkit. That post says how I ran the checks. This one says what each check is looking for, and why it comes where it does.

You don’t need to learn all twelve areas. I check each one on your app and tell you, in plain words, which ones fail and what fixing them involves.

The Technical tab has the proper names, the attack types and the checks in code terms.


Start here: what are you protecting, and from whom?

Before testing anything, write down two lists.

What is worth stealing or breaking. Customer data. Money. Accounts. The admin side. Your bills for AI, email or hosting.

Who might try. A stranger on the internet. A paying customer who wants more than they paid for. A customer curious about another customer. A bot. Someone who gets into your own email. And you, by mistake.

That second list matters more than people think. In my own audit, none of the real problems were clever hacks. They were missing rules and honest mistakes.

This is called a threat model. Mine is one short table: who, what they want, what stops them today, what is still open. Every area below is a way to fill in that table.


The twelve areas, in order

The order is by where the damage usually is in a small SaaS. The first five are where real problems hide. Tools barely see them.

1. Sign-in: who are you?

What it is: proving a person is who they say they are. Passwords, sign-in links, Google sign-in, two-step codes, and the “session” that keeps you signed in after.

What goes wrong:

  • a password reset link that works forever, or works twice
  • a session that never ends, so a stolen laptop stays signed in
  • a test login left switched on in the live app
  • no limit on password guesses

How to check: try every way in. Sign in, sign out, reset, use an old link, use someone else’s link. Check that test logins only work on a developer’s machine.

Most small apps hand sign-in to a service built for it. That is a good choice. It does not remove the need to check how your app uses it.

In my audit, all 65 doors into the app refused a visitor who was not signed in. A weekly review of the same app still found a sign-in link that could send someone to another site. It has since been fixed.

2. Permissions: what are you allowed to do?

What it is: after the app knows who you are, it decides what you can see and change. A customer sees their own data. An admin sees the admin pages. A free user does not get paid features.

This is the number one problem in web apps. It has topped the main industry list of web risks for years.

What goes wrong:

  • changing the number in the address. You open /invoices/1041. You change it to /invoices/1042. If the app does not check that 1042 is yours, you are reading someone else’s invoice.
  • an admin page that hides the button but not the page behind it
  • a page that checks permissions, but the data request behind it does not
  • a “delete” that checks who owns the item when you open it, but not when you press delete

How to check: make two fake customers. As customer A, try to read and change every one of customer B’s things. Every attempt should fail. Then turn that into an automatic test.

In my audit, this test passed all 8 times. It now runs every time code is shared.

The same weekly review found admin pages that did not check who was looking. Those were fixed the next day too. If one database holds every customer, row-level security adds a second wall: the database itself refuses the wrong rows.

3. Input: what are you sending in?

What it is: everything a user types, uploads or sends. Form fields, file uploads, links, web addresses, even the name of a file.

The rule: never trust it. Check its shape, its size and its type before using it.

What goes wrong:

  • text treated as a command. A user types something into a search box that the database runs as an instruction. This is called injection.
  • text treated as page code. A user saves a comment that runs as code in the next visitor’s browser.
  • no size limit. Someone sends a 500 MB “job description”. The app slows down or your bill goes up.
  • a link the app fetches for you. The user gives a web address, and the app visits it from inside your own network.

How to check: a code scanner finds many of the obvious cases. A person checks that every form and every data request has size and type limits.

In my audit, text boxes had no size limit. Now every field has one.

4. Money and app rules: can someone cheat the system?

What it is: the rules that only your app has. How trials work. When a plan upgrades. What happens when a payment fails. Who can invite whom.

No tool knows these rules. This is where a person earns their fee.

What goes wrong:

  • two free trials by signing up twice
  • paid features that stay on after a payment fails
  • a fake “payment succeeded” message sent to your app
  • clicking “buy” twice very fast and getting charged once but upgraded twice

How to check: list every rule about money and access. Try to break each one. Send a fake payment message and check it is refused.

In that weekly review: a payment update could get lost if the payment provider sent it twice, and a first-time customer could not finish checkout. Both were among the 17 fixes shipped the next day.

5. Abuse and limits: can someone use too much?

What it is: limits on how often and how much. How many sign-in tries per minute. How many AI requests per day. How many emails per hour.

What goes wrong:

  • a bot guessing passwords all night
  • a bot running up your AI bill by calling the same feature thousands of times
  • someone using your “invite a friend” form to send spam

How to check: find every action that costs money or can be guessed. Check each has a limit, and that the limit holds when the app runs on more than one server.

In my audit, each server kept its own count, so the limit did not hold. The count now lives in the database, shared by every server.


The next areas are where tools help most. They are still worth understanding, because tools are noisy and a person has to decide what matters.

6. Secrets: are the keys safe?

What it is: passwords and keys the app itself uses. The database password. The payment provider key. The email service key.

What goes wrong:

  • a key saved into the code by mistake, then shared with the code
  • the same key used on the test site and the live site
  • an old key nobody uses, still working

How to check: a tool searches every saved version of the code for things that look like keys. If a real one turns up, deleting it is not enough. Replace the key, because someone may already have a copy.

7. Settings: is the live app set up safely?

What it is: how the live app is switched on. Error pages. Safety settings the browser reads. Which test features are off.

What goes wrong:

  • error pages that show the app’s code to visitors
  • developer tools left on in the live app
  • the test site able to write to the live database
  • missing browser safety settings, like the one that stops other sites showing your app inside theirs

How to check: a tool visits the live site and reads its settings. A person checks the settings the tool cannot see, like which database each site points at.

Test the real site, not a laptop copy. The laptop copy turns on extra settings for building that look like holes.

8. Outside code: are the building blocks safe?

What it is: your app is built on hundreds of free code packages written by others. Sometimes one has a known hole.

What goes wrong:

  • a package with a known hole that nobody updated
  • a fake package with a name one letter off the real one
  • a package that was safe last month and is not now

How to check: a tool lists every known hole in seconds. Then a person reads each one, because “critical” often only applies if the app is built a certain way. Run it monthly. Clean last month does not mean clean now.

9. Automatic jobs and deploys: what runs by itself?

What it is: the jobs that run on a schedule, and the steps that put new code live. These often have the most access of anything in the app.

What goes wrong:

  • a broken job that still has the right to change live data
  • a deploy step that pulls in outside code without checking it
  • keys for these jobs that nobody remembers setting

How to check: first ask “does this job even run?” Then: what can it reach, and who can change it. In my audit, two jobs had failed every time for weeks. I removed both.


The last three areas are about what happens when things go wrong.

10. Errors: does it fail safe?

What it is: what the app does when something breaks. A missing setting. A service that is down. A request it does not understand.

The rule: when unsure, say no. A missing key should block the request, not let it through.

What goes wrong:

  • a check that is skipped when its setting is missing
  • an error that shows private details
  • a half-finished payment that leaves the account upgraded

How to check: turn things off on a test site and see what happens. Remove a key. Send nonsense. The app should refuse, not guess.

11. Logs and alerts: would you notice?

What it is: a record of what happened, and an alert when something looks wrong.

What goes wrong:

  • an attack that runs for weeks because nothing was watching
  • logs that save passwords or customer data in plain text
  • no way to tell, after a problem, who did what

How to check: can you answer “who changed this, and when?” Do failed sign-ins, admin actions and payment errors leave a record? Do logs hide private data?

In my job-alert app, job checks once stopped for 25 minutes. One refused request had made the browser extension throw away its pass, and the server kept no record of why. The fix added that record: which route refused, who refused, and the pass’s verdict. More in troubleshooting a live app.

12. Tests: will the fix stay fixed?

What it is: small automatic programs that check one rule still holds. “Customer A cannot open customer B’s draft.”

Why it is on a security list: every fix breaks again one day if nothing checks it. A security review finds the holes. Tests keep them closed.

How to check: every security fix has a test that fails if the fix is removed.


Who checks what

AreaTools help?Who finds the real problems
1. Sign-ina littleperson
2. Permissionsnoperson
3. Inputpartlytool for patterns, person for limits
4. Money and app rulesnoperson
5. Abuse and limitsnoperson
6. Secretsyestool
7. Settingspartlytool for the website, person for the rest
8. Outside codeyestool, then a person ranks it
9. Automatic jobsa littleperson reading the job history
10. Errorsa littleperson
11. Logs and alertsnoperson
12. Tests—person writes them

That is why my audit found little with tools and most of the real fixes by hand.


The order to test them

The order to learn them is the list above: where the damage is.

The order to test them is different. Run the cheap tools first, so the noise is out of the way:

  1. Outside code, secrets, code patterns, the live website (areas 6, 7, 8 and part of 3).
  2. Automatic jobs (area 9).
  3. By hand: sign-in, permissions, input limits, money, abuse limits, settings the tools miss (areas 1 to 5 and the rest of 7).
  4. Errors and logs (areas 10 and 11).
  5. A test for every fix (area 12).
  6. Update the threat model table with what is still open.

The toolkit post walks through exactly that run on a live app.

The short version

  • Security is twelve areas. Each one asks a simple question, like “who are you?” or “what are you allowed to do?”
  • The worst holes in a small SaaS are almost never clever hacks. They are missing rules: a page that forgets to check who is asking.
  • Tools answer the easy questions fast, about a third of the areas. The ones that matter most, like “can one customer see another’s data?”, need a person who knows what the app should allow, and a test that keeps the answer right.

Tell me what your app is built with and I’ll tell you which of the twelve areas to check first.

Which of the twelve areas has your app never been checked for?

KNOWWHEREYOURAPPSTANDS

Tell me about your app and I'll check it against all twelve areas, then fix what fails.

More Posts

All posts