security(v2.12): strictly parse exactly one IMAP From mailbox before sender-whitelist checks #129
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/a0-symbolics#129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upstream
Agent Zero v2.12 security fix: https://github.com/agent0ai/agent-zero/releases/tag/v2.12
Confirmed gap on main
plugins/_email_integration/helpers/imap_client.pydecodes the rawFromheader into a string and then extracts/matches an address for the sender whitelist. v2.12 hardens this boundary by requiring exactly one valid mailbox before whitelist evaluation.Required work
Frommailbox.Fromvalues before whitelist checks.Acceptance
From: Alice <alice@example.com>matches asalice@example.com.Fromare rejected even when one is whitelisted.