Provider response body is accumulated unbounded #143
Labels
No labels
already-shipped
bug
documentation
duplicate
enhancement
external-review
good first issue
help wanted
in progress
invalid
needs-decision
proposal
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: crenshawdev/cadence-archived#143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: deep dive F11 (size half only)
Verdict: AGREE - low
Claim as reviewed
Provider responses are concatenated into an unbounded string, so an unexpectedly large response or a proxy error page can consume arbitrary memory.
At HEAD
f354864(v3.3.0)cadence-core/bin/review-provider.mjs:524-530-let data = ''; res.on('data', (c) => { data += c; });with no byte ceiling and no destroy path.Note
The deadline half of this finding was refuted separately - see the closed issue on the socket-inactivity timer. Only the size bound survives.
Bounded in practice by the host's wrapping command timeout. Fix: a max response-byte limit that destroys the request once crossed, and a capped sanitized excerpt rather than the whole body in HTTP failure envelopes.