diff options
| author | Kenneth Lien <kenneth@anthropic.com> | 2026-03-26 23:11:29 -0700 |
|---|---|---|
| committer | Kenneth Lien <kenneth@anthropic.com> | 2026-03-26 23:11:29 -0700 |
| commit | 03a685d5f612f890dbe63446dae2f762a3e7e65e (patch) | |
| tree | 46e127bc9294744f443caf6c3d4a765ac910c3d0 /plugins/plugin-dev/skills/plugin-settings/scripts/parse-frontmatter.sh | |
| parent | 72b975468071669f5503fd49c37ab657d9212fbd (diff) | |
imessage: restrict permission relay to self-chat only
Permission prompts were being broadcast to all allowlisted contacts plus
every DM resolvable from the SELF address set. Two compounding bugs:
1. SELF was polluted by chat.last_addressed_handle, which on machines
with SMS history returns short codes, business handles, and other
contacts' numbers — not just the owner's addresses. One reporter's
query returned 50 addresses (2 actually theirs) resolving to 148 DM
chats, all of which received permission prompts.
2. Even with a clean SELF, the handler sent to allowFrom + SELF, so
every allowlisted contact received the prompt and could reply to
approve tool execution on the owner's machine.
Fix:
- Build SELF from message.account WHERE is_from_me=1 only
- Send permission prompts to self-chat only, not allowFrom
- Accept permission replies from self-chat only
Fixes #1048
Fixes #1010
Diffstat (limited to 'plugins/plugin-dev/skills/plugin-settings/scripts/parse-frontmatter.sh')
0 files changed, 0 insertions, 0 deletions
