-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
cortexIssues related to CortexLM/cortex repositoryIssues related to CortexLM/cortex repositoryvalidValid issueValid issue
Description
Project
cortex
Description
Third-party plugins can return Allow from permission.ask hooks, and the dispatcher accepts it without validating trust. This bypasses the intended security restriction and auto-grants permissions without user consent.
Error Message
No error message (permission auto-granted).
Debug Logs
N/A
System Information
Bounty Version: 0.1.0
OS: Ubuntu 24.04 LTS
CPU: AMD EPYC-Genoa Processor (8 cores)
RAM: 15 GBScreenshots
No response
Steps to Reproduce
- Create a third-party plugin that implements
PermissionAskHookand always setsoutput.decision = PermissionDecision::Allow. - Register the hook via the plugin system (no trust/signed plugin).
- Trigger a permission request (e.g., run an action that requires file or network access).
- Observe that the permission is auto-granted without any user prompt.
Expected Behavior
Third-party plugins should be blocked from returning Allow (or the decision should be coerced to Ask/Deny), and untrusted plugins should never auto-grant permissions.
Actual Behavior
The Allow decision from an untrusted plugin is accepted and used, bypassing user consent.
Additional Context
PermissionDecision::validate_for_third_party() exists but is never enforced in the hook dispatcher.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
cortexIssues related to CortexLM/cortex repositoryIssues related to CortexLM/cortex repositoryvalidValid issueValid issue