Insecure Direct Object Reference (IDOR) via Header-Based Email Routing
Summary An Insecure Direct Object Reference has been found to exist in `createHeaderBasedEmailResolver()` function within the Cloudflare Agents SDK. The issue occurs because the `Message-ID` and `References` headers are parsed to derive the target agentName and agentId without proper validation or origin checks, allowing an external attacker with control of these headers to route inbound mail to arbitrary Durable Object instances and namespaces . Root cause The `createHeaderBasedEmailResolver()` function lacks cryptographic verification or origin validation for the headers used in the routing logic, effectively allowing external input to dictate internal object routing. Impact Insecure Direct Object Reference (IDOR) in email routing lets an attacker steer inbound mail to arbitrary Agent instances via spoofed Message-ID. Mitigation: * PR: https://github.com/cloudflare/agents/blob/main/docs/email.md ] provides the necessary architectural context for coding agents to mitigate the issue by refactoring the resolver to enforce strict identity boundaries. * Agents-sdk users should upgrade to agents@0.3.7
Affected products
- =<0.3.6
Matching in nixpkgs
pkgs.ssh-agents
ssh-agents capable of spawning and maintaining multiple ssh-agents across terminals
pkgs.ocf-resource-agents
None
pkgs.lima-additional-guestagents
Lima Guest Agents for emulating non-native architectures
pkgs.python312Packages.smolagents
Barebones library for agents
pkgs.python313Packages.smolagents
Barebones library for agents
pkgs.python314Packages.smolagents
Barebones library for agents
pkgs.python312Packages.user-agents
Python library to identify devices by parsing user agent strings
pkgs.python313Packages.user-agents
Python library to identify devices by parsing user agent strings
pkgs.python314Packages.user-agents
Python library to identify devices by parsing user agent strings
pkgs.python312Packages.pyuseragents
Giving you a random User-Agent Header
pkgs.python313Packages.pyuseragents
Giving you a random User-Agent Header
pkgs.python314Packages.pyuseragents
Giving you a random User-Agent Header
pkgs.python312Packages.openai-agents
Lightweight, powerful framework for multi-agent workflows
pkgs.python313Packages.openai-agents
Lightweight, powerful framework for multi-agent workflows
pkgs.python314Packages.openai-agents
Lightweight, powerful framework for multi-agent workflows
pkgs.python312Packages.bot-safe-agents
Library for fetching a list of bot-safe user agents
pkgs.python313Packages.azure-ai-agents
Microsoft Corporation Azure AI Agents Client Library for Python
pkgs.python313Packages.bot-safe-agents
Library for fetching a list of bot-safe user agents
pkgs.python314Packages.azure-ai-agents
Microsoft Corporation Azure AI Agents Client Library for Python
pkgs.python314Packages.bot-safe-agents
Library for fetching a list of bot-safe user agents
Package maintainers
-
@emaryn emaryn
-
@emilytrau Emily Trau <emily+nix@downunderctf.com>
-
@fabaff Fabian Affolter <mail@fabian-affolter.ch>
-
@dotlambda Robert Schütz <rschuetz17@gmail.com>
-
@kalbasit Wael Nasreddine <wael.nasreddine@gmail.com>
-
@kachick Kenichi Kamiya <kachick1@gmail.com>
-
@katexochen Paul Meyer <katexochen0@gmail.com>
-
@bryanhonof Bryan Honof <bryanhonof+nixpkgs@gmail.com>