Skip to main content

Security and Risk

Authorisation

Authorisation decides what a known user can access. It is where the costly access flaws live, because it has to be enforced everywhere and is easy to check in only one place.

Definition

Authorisation decides what a known user is allowed to do. It follows authentication, which established who they are.

What It Actually Means

The two get discussed as one topic and they behave very differently. Authentication happens once, at a single point, at the start of a session. Authorisation has to happen continuously, at every point where the system shows information or performs an action.

That difference is the entire reason authorisation flaws are so common and so damaging. There is one login to get right. There are hundreds of places a permission check has to be present, and a missing one looks exactly like a working one until somebody tries it.

The Flaw You Should Know About

The most common serious access flaw in business software is embarrassingly simple, and you can test for it without any technical skill.

A user opens their own invoice, and the address bar reads /invoices/1049. They change it to 1048. If somebody else’s invoice appears, the system checked that they were logged in but never checked whether the record was theirs.

Automated scanners do not reliably find this, because nothing about it is technically malformed. The request is perfectly valid. Only the business rule is missing, and only a human who understands the rule can spot its absence, which is why it survives into production so often.

You can test this yourself in a minute, on any system holding your data, and it is a fair question to ask of any supplier.

Where It Goes Wrong

Checked in the interface only. The button is hidden from users who should not press it, and the underlying action is not protected. Anyone who knows the address reaches it directly.

Checked on the way in but not on the way out. A search or export that filters correctly for the screen, but returns everything when called for a report or an API.

Checked for the record but not the relationship. A manager can see records of their type, and the check never confirms the record belongs to their team, their region or their client.

Correct on the main path and absent on the second one. The web interface enforces the rule and the mobile app, the integration or the admin tool does not, because they were built later against a different assumption.

What To Ask

  • Is the rule enforced on the server, or only hidden in the interface? The only answer that means anything.
  • Can I see another record by changing the number in the address? Ask them to demonstrate that you cannot.
  • Does every route enforce it: web, mobile, API, exports, reports? Reports and exports are the usual gap.
  • Is access scoped by team or client as well as by role?

Getting It Right By Design

Systems that avoid this class of flaw generally do one thing: they make the permission check impossible to forget rather than relying on developers to remember it at hundreds of separate points.

That means the check lives in one place that every request passes through, and access to data is scoped by default to what the current user may see, so retrieving something they should not requires an explicit decision, not an omission. In other words, deny by default, built into the structure of the code.

A clear role model makes that possible, because rules can only be enforced consistently once they have been stated clearly.

More terms are in the glossary.

Portrait of Alexander De Sousa, founder of Digital Royalty
Founder-led
“I’ve put everything I know into how this company works — the standards, the method, the care on every project. It runs through the whole team, and I hold us all to it.”

Alexander De Sousa · Founder LinkedIn

Featured on BBC Radio Solent

Get started

Tell us what you need

A few quick questions, then a straight answer from a real person — usually within a few hours.

What happens next

  1. 1 We reply A real person reads your answers and gets back to you, usually within a few hours.
  2. 2 Questions or a short call If anything isn't clear, we ask by email or book a short call. Before any call we audit your website and make the quick fixes it finds, free.
  3. 3 Your fixed quote A clear, fixed price in writing, within 48 hours of any call. There is no obligation to go ahead.

Tell us what you're working on

Whether it's a new site, a platform, or a process that shouldn't be manual any more — we'll tell you honestly if we can help.