Confused Deputy¶
Core Idea¶
A confused deputy is a privileged intermediary that acts on its own authority while the intent behind the action originated with an outsider who lacks that authority. The system tracks who acted but loses whose intent it executed: effective authority composes as the union of caller and intermediary rather than the safe intersection, so intent provenance is dropped.
How would you explain it like I'm…
The Tricked Guard
Whose Wish Was It?
Borrowed Authority Failure
Broad Use¶
- Information security: server-side request forgery (a server fetches an outsider-supplied URL reaching internal resources); cross-site request forgery; signing-oracle attacks.
- Financial fraud: a fraudster directs a trusted treasurer's system so the bank sees the treasurer's authority, not the fraudster's intent.
- Agency law (apparent authority): an agent's act binds a principal when third parties reasonably believed it authorized, though the principal never intended it.
- Clinical authority chains: a senior's signature converts a junior's instruction into an authoritative order, attributed to the senior's authority.
- Voice assistants: a broadcast saying "order paper towels" makes a device act on the household's authority because it cannot separate intent from ambient audio.
Clarity¶
It dissolves the seductive defence "but the intermediary was properly authenticated" by shifting the question from who acted? to whose intent produced the act?, and predicts that privilege on a directable intermediary is a liability.
Manages Complexity¶
It collapses SSRF, CSRF, wire fraud, and apparent-authority disputes into one defect (union-not-intersection) with three fixes: capability-passing, caller-aware authorization, or out-of-band confirmation.
Abstract Reasoning¶
It trains a reasoner to ask of any intermediary whether its authority composes with the caller's by intersection (safe) or union (vulnerable), and where the originator's identity was dropped from the record.
Knowledge Transfer¶
- Security → finance: the SSRF fix (re-attach intent provenance) is the wire-fraud fix (out-of-band confirmation of the originating request).
- Computing → law: capability-passing reappears as agency law's scope-of-authority notices and ratification requirements.
- General: the invariant transfers everywhere — accumulating privilege on a directable intermediary increases its vulnerability.
Example¶
An external user supplies a URL pointing at a cloud metadata endpoint; the public-facing server, trusted inside the network, fetches it on its own authority — so the empty intersection of the outsider's (none) and the server's (full) authority is silently computed as a union, and stronger authentication cannot help.
Relationships to Other Abstractions¶
Current abstraction Confused Deputy Prime
Parents (2) — more general patterns this builds on
-
Confused Deputy is a kind of, typical Agency Problem Prime
A privileged intermediary executing an outsider's intent without authority is a specific misalignment-of-authority-and-intent instance of the principal-agent structure.
-
Confused Deputy is a kind of Untrusted Input Execution Prime
Confused Deputy is a specialization of Untrusted Input Execution, retaining the parent's defining structure while adding the child's specific commitments.
Children (1) — more specific cases that build on this
-
Server-Side Request Forgery Domain-specific is a decomposition of Confused Deputy
SSRF is the web-request form of a confused deputy: an outsider supplies intent while a trusted server supplies network position and credentials.
Hierarchy paths (4) — routes to 4 parentless roots
- Confused Deputy → Agency Problem → Agency
- Confused Deputy → Untrusted Input Execution
- Confused Deputy → Agency Problem → Information Asymmetry → Asymmetry
- Confused Deputy → Agency Problem → Delegation of Authority → Authority
Not to Be Confused With¶
- Confused Deputy is not Consent because consent is a party's authorization for an action affecting them whereas the intermediary's authority is valid and undisputed — the failure is mis-attributed intent, not missing consent.
- Confused Deputy is not Trust because the vulnerability arises even with fully trustworthy parties — it is an authority-composition defect, not a trust relationship gone wrong.
- Confused Deputy is not Authority Delegation Under Uncertainty because delegation is deliberately granting discretion whereas the deputy is authority borrowed without anyone granting it.