Description
SonicJS through 3.0.0 contains a missing authorization vulnerability in the /api/:collection and /api/content write routes that only check coarse role labels. Authenticated authors or editors can use a bearer JWT or API key to create, modify, publish, or soft-delete other users' documents, bypassing document ACLs and administrator deny overrides.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| SonicJs-Org | sonicjs | ≤ 3.0.0 | — |
References
- GitHub Issue #1125 issue-tracking
- https://github.com/SonicJs-Org/sonicjs product
- https://github.com/SonicJs-Org/sonicjs/blob/v3.0.0/packages/core/src/routes/api.ts#L1296 technical-description
- https://github.com/SonicJs-Org/sonicjs/pull/1147 patch issue-tracking
- https://hackmd.io/@hieuPenguinnn/sonicjs-content-api-write-acl-bypass third-party-advisory
- VulnCheck Advisory: SonicJS through 3.0.0 Missing Authorization in Content Write API third-party-advisory