Description
bbs-go through 4.4.6 contains a permission bypass vulnerability in the AdminMiddleware authorization logic where the read-only dashboard.user.view permission rule matches the /api/admin/user/synccount endpoint before the intended dashboard.user.update rule. Authenticated users with only view permissions can call the synccount endpoint to trigger expensive full-table user recounts and cache invalidations, causing denial of service through repeated concurrent database operations.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mlogclub | bbs-go | ≤ 4.4.6 | — |
References
- GitHub Issue #303 issue-tracking
- https://github.com/mlogclub/bbs-go/commit/97d0bb3dcbacd686fd5300295afbf4f4a5da7609 patch
- https://github.com/mlogclub/bbs-go/blob/v4.4.6/internal/permissions/admin_permission_registry.go#L59-L60 technical-description
- https://github.com/mlogclub/bbs-go/blob/v4.4.6/internal/handlers/admin/user_handlers.go#L47-L59 technical-description
- https://github.com/mlogclub/bbs-go product
- VulnCheck Advisory: bbs-go through 4.4.6 Incorrect Authorization via /api/admin/user/synccount third-party-advisory