Summary
CodeWhale automation could treat an omitted approval setting as enabled, causing scheduled runs to bypass human approval for tools that can make changes. The risk arises when a user creates an automation that later runs with access to mutating tools, including shell commands.
Affected context
The issue occurs in CodeWhale's automation creation and scheduled task execution paths when the approval setting is omitted. The creation schema and default resolution treated omission as approval, and scheduled runs selected a bypass mode. The risk depends on the automation having access to tools capable of making changes.
Exploit preconditions
- Attack surface: CodeWhale automation creation and scheduled execution
- Required access: Ability to create an automation; the description does not establish that an unauthenticated attacker can do so
- Trigger point: A scheduled run of an automation whose approval setting was omitted
- Why exploitation is possible: The omitted value resolves to approval enabled, so the run can bypass human approval for available tools
Why this happens
The automation path used an insecure default: an omitted approval setting was interpreted as permission to bypass approval. This reflects CWE-1188: Initialization of a Resource with an Insecure Default Value and can lead to CWE-862: Missing Authorization when scheduled actions proceed without the expected human approval. The schema and task-enqueue behavior failed to preserve a safer fallback for omitted settings.
Potential impact
- Scheduled runs may execute mutating tools without a human present.
- Automations with shell access could repeatedly execute commands.
- Unauthorized changes to files, systems, or other accessible resources could occur.
General mitigation guidance
Defensive patterns include making approval opt-in rather than the default, treating omitted or invalid settings as requiring approval, and applying the same authorization checks to manual and scheduled task paths. Limit which tools automations can access, use least-privilege execution contexts, and require explicit, informed authorization for recurring actions.
How teams detect issues like this
Review automation schemas and default-resolution logic for settings that grant permission or bypass approval when omitted. Trace approval decisions through task creation and scheduled execution, and check that every execution path enforces equivalent authorization. Policy checks can flag permissive defaults and automations with broad tool access; audit logs can help identify scheduled actions that ran without human approval.

