Commit 2e5ec2d
cap RPC response size to prevent OOM from compromised Zebra backend
node.rs rpc_call() now reads bytes with 10MB cap before json parsing.
Prior version called resp.json() with no size limit on untrusted RPC data.
Found by self-hunt via BountyBlitz engine.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4fbb432 commit 2e5ec2d
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| |||
0 commit comments