T09 · Insecure Skill Coding Practices
- Location
scripts/deploy.mjs:124- Finding
Time-of-check to time-of-use race can upload unintended local files
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a coherent Cloudflare static-site deployment helper, with expected network upload behavior and sensible user-consent and claim-URL handling.
Install only if you intend to publish the selected static directory to a Cloudflare workers.dev URL. Use it with a trusted, stable directory containing only public files, review Cloudflare terms before accepting, and keep the claim URL file private.
scripts/deploy.mjs:124Time-of-check to time-of-use race can upload unintended local files
The skill instructs the agent to perform a networked deployment to Cloudflare Workers but does not declare any explicit tool scope or allowed-tools boundary. That omission weakens policy enforcement and reviewability, because an agent/runtime may permit broader network access than intended or fail closed/open inconsistently when executing the deployment flow.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
} from "node:fs";
import { extname, join } from "node:path";
const API_BASE = "https://api.cloudflare.com/client/v4";
const MAX_FILES = 1_000;
const MAX_WORKER_SCRIPT_BYTES = 2 * 1024 * 1024;