You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ipfs_pin::cat and gl mcp read bodies without a real bound #504
gl mcp (crates/gl/src/mcp.rs:1325-1332) trusts Content-Length for a vec![0u8; len] allocation, so a hostile node can force a huge allocation with one header.
Fix: cap both with a shared bounded reader (see #418, #473), enforce the cap while streaming rather than from the header, and size the allocation from bytes actually received.
Both halves are tracked elsewhere. The gl mcp unbounded read is the client-side success-body class in #473. The ipfs_pin::cat read (ipfs_pin.rs:1552-1563) is the same site as #471 and #472 and part of the node's outbound response-bound class in #418. Closing in favor of those so each fix is reviewed once.
Activity
beardthelion commentedon Nov 17, 2026
Both halves are tracked elsewhere. The
gl mcpunbounded read is the client-side success-body class in #473. Theipfs_pin::catread (ipfs_pin.rs:1552-1563) is the same site as #471 and #472 and part of the node's outbound response-bound class in #418. Closing in favor of those so each fix is reviewed once.