Finding and validation status
Daybreak Blue source review found direct real-filesystem read APIs admit caller-controlled safe-integer allocation sizes without an operational upper bound. Reachability from untrusted safe-bash input has not been demonstrated; treat this as a hardening candidate pending validation.
Current-code evidence
- openReadFile read validates position/maxBytes and allocates Uint8Array(maxBytes), catching allocation errors as EFBIG.
- readStream validates chunkSize and allocates Uint8Array(min(chunkSize, end-position)).
A direct SDK consumer or custom command forwarding untrusted size values could request excessive allocations. Existing maintained shell callers generally supply bounded values. Direct trusted JavaScript callers already have allocation capability, so a concrete untrusted caller path is necessary to establish a security vulnerability.
Impact and validation limits
Potential memory pressure or process failure when an application exposes these sizes to an untrusted caller. No destructive allocation/OOM reproduction was run. Reviewed source at d126d35; no confirmed default-shell DoS is claimed.
Acceptance criteria
- Trace supported untrusted caller paths and current size bounds.
- Reproduce excess allocation admission safely with mocked allocation/native I/O rather than exhausting memory.
- If a reachable issue is confirmed, add appropriate budget admission and focused regression coverage; otherwise document the trusted-caller boundary and close as non-vulnerability.
Finding and validation status
Daybreak Blue source review found direct real-filesystem read APIs admit caller-controlled safe-integer allocation sizes without an operational upper bound. Reachability from untrusted safe-bash input has not been demonstrated; treat this as a hardening candidate pending validation.
Current-code evidence
A direct SDK consumer or custom command forwarding untrusted size values could request excessive allocations. Existing maintained shell callers generally supply bounded values. Direct trusted JavaScript callers already have allocation capability, so a concrete untrusted caller path is necessary to establish a security vulnerability.
Impact and validation limits
Potential memory pressure or process failure when an application exposes these sizes to an untrusted caller. No destructive allocation/OOM reproduction was run. Reviewed source at d126d35; no confirmed default-shell DoS is claimed.
Acceptance criteria