Case: the invoice that trusted the query string
A fictional billing API returned invoice 42 from another company because the handler preferred the tenant in the query string over the tenant in the session.
Source: KashSec · KashSec Academy · checked 2026-11-18
Level: Core · about 15 minutes
What goes wrong
Bob at Acme was logged in. A request asked for Birch invoice 42 and the service answered 200. Nothing in this case left KashSec. The company, invoices, and log lines are made up.
How to defend
Read tenant and role from the server-side actor. Allow support only inside that tenant. Require the owner to match for everyone else.
What to be careful about
A real bug of this shape still needs the application’s session code, which this browser exercise does not include.
Check yourself
Which two fields in the request are unsafe to trust for authorization?
Portfolio task
Finish Fix & Verify, save the note, and compare it with the downloadable expert-lab report.
Skills it supports
Original KashSec explanation. The incident is fictional.