Commit 204fdfb
security: use safeJsonParse in WAC ACL parser for DoS protection
Replace raw JSON.parse() with safeJsonParse() which enforces a 10MB
size limit before parsing. This prevents memory exhaustion attacks
via maliciously large ACL documents.
The safeJsonParse utility was already available in utils/url.js but
wasn't being used consistently across the codebase. This addresses
the audit finding about inconsistent JSON parsing protection.
CVSS: 5.3 (Medium) - DoS via large JSON payloads
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 2569811 commit 204fdfb
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments