-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Discord Preset Allows DELETE Method on All Paths — Overly Permissive Default - IssueFinder - SN 11 #1433
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingstatus: triageFor new items that haven't been reviewed yet.For new items that haven't been reviewed yet.
Description
Description
Repository
- https://github.com/NVIDIA/NemoClaw
- Branch: main
Related GitHub Issue Check
- Matching open issue: Inference and telemetry policies allow all HTTP methods — wildcard rules permit destructive API operations #1113 (related but about inference/telemetry wildcards)
Inference and telemetry policies allow all HTTP methods — wildcard rules permit destructive API operations #1113 covers inference and telemetry wildcard methods. This finding is specifically about the Discord preset including DELETE on all paths.
Description
The Discord network policy preset (presets/discord.yaml lines 15-21) allows GET, POST, PUT, PATCH, and DELETE methods on /** paths for discord.com. The DELETE method allows the agent to delete channels, messages, guilds, roles, and other Discord resources. This is excessively permissive for most bot use cases.
Impact
An agent prompted to "clean up" could delete Discord channels, messages, or roles.
Affected Area
- File(s): nemoclaw-blueprint/policies/presets/discord.yaml (lines 15-21)
Expected Behavior
DELETE should not be in the default preset. If needed, it should be an explicit opt-in with path restrictions.
Actual Behavior
DELETE allowed on all Discord API paths by default.
Reproduction Steps
Steps to Reproduce
nemoclaw policy-add --preset discord- Inside sandbox:
curl -X DELETE -H 'Authorization: Bot <token>' https://discord.com/api/v10/channels/<id> - Channel is deleted — no policy restriction
Environment
- OS: Any
- NemoClaw Version: v0.1.0
- Branch: main
- Runtime: OpenShell sandbox
- Container / Orchestration Info: Docker sandbox with OpenShell proxy
- Network Setup: Requires outbound HTTPS to discord.com
Debug Output
# Read the Discord preset/baseline policy:
grep -A 20 'discord:' nemoclaw-blueprint/policies/openclaw-sandbox.yaml
# Check for: DELETE method in allowed rules
# Test from inside sandbox:
openshell sandbox exec <sandbox-name> -- \
curl -s -X DELETE -H "Authorization: Bot $DISCORD_BOT_TOKEN" \
https://discord.com/api/v10/channels/CHANNEL_ID/messages/MSG_ID
# If DELETE passes through the proxy, the policy is too permissiveLogs
# N/A — this is a policy configuration issue.
# The Discord policy allows methods beyond what NemoClaw needs.Checklist
- I confirmed this bug is reproducible
- I searched existing issues and this is not a duplicate
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingstatus: triageFor new items that haven't been reviewed yet.For new items that haven't been reviewed yet.