A report-sharing feature
Maple Freight lets a signed-in dispatcher share a shipment report with a colleague. The report belongs to a tenant and an owner. A worker retrieves a document from an approved service; an email carries a short-lived link. The business wants the colleague to read that report without gaining access to the rest of the tenant.
List the assets before naming attacks: the report content, the recipient identity, the signing key and the tenant boundary. Draw the browser, API, worker, document service and email recipient as separate actors. Mark the data that crosses each boundary. The browser’s shipment identifier is a request, not evidence of permission.
Threats and evidence
| Boundary | Possible abuse | Control | Verification |
|---|---|---|---|
| Browser to API | A dispatcher supplies another tenant’s report ID | Check tenant and permitted relationship | An owner ID reused in another tenant still receives 403 |
| Shared link to API | A recipient alters the report or audience | Verify signature, claims and expiration | Altered token, wrong audience and expiry equality all fail |
| Worker to document service | A supplied destination reaches an internal service | Fix the destination or validate an exact allowlist | A suffix host and a redirect to an internal host fail |
| Failure to browser | A trace reveals credentials | Return a generic error and incident ID | Public response omits secret, stack and internal host |
These are hypotheses about this feature. The model needs revisiting if reports become public or a partner can delegate access. Name the owner of each control and the condition that would invalidate its assumption.
A reviewable decision
Write a decision such as: “The API authorizes the authenticated caller for this tenant and report before issuing a recipient-scoped link. The worker fetches only the fixed document origin. Failed permission checks deny access and produce an incident identifier.” Then link each sentence to a test and an owner. A diagram alone cannot show that these controls run.
Practice the tenant and fetch boundaries in the Application security Hub. Use the secure code review guide to turn a threat into a reproducible finding. The browser’s fictional network cannot test DNS rebinding, production key rotation or concurrent authorization changes.
The new lessons and practical interviews in this extension are in English. Earlier translated lessons retain their native versions.