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 Primes¶
Parents (1) — more general patterns this builds on
- Confused Deputy is a kind of Untrusted Input Execution — child of emergent untrusted_input_execution
Path to root: Confused Deputy → Untrusted Input Execution
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.