Two correct systems, one vulnerability
A gateway authenticates the user and forwards the request. The service behind it assumes anything arriving from the gateway is authorized. Each component does what its authors intended. Together they let any logged-in user reach any record, because nobody was assigned the question of whether this user may touch this object.
The same shape shows up everywhere: a front end that hides a button and a back end that never checks, a queue whose consumer trusts whatever is on it, an internal API that was never meant to be reachable and now is.
Why tools miss them
Scanners and unit tests examine one component at a time. Each passes. The flaw exists only in the relationship between them, and that relationship is usually written down nowhere. Finding it takes someone who reads both sides and asks what each one is assuming about the other.
How to look
Draw the system as boundaries instead of features. For every arrow that crosses one, write down who the caller is, how the receiver knows, and what the receiver checks for itself. Authorization belongs at the point where data is read or changed, repeated at every layer that can be reached independently. An audit that spends its time there finds the bugs that cost money.
Related: Penetration testing & audits →Fractional CTO services →