GHSA-9XH7-5JG8-MF43
Bucket delete uses the URL view instead of the bucket's real view
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-9XH7-5JG8-MF43 divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
A user with write access to a project deletes the only bucket of kanban view V1 through `/views/V2/buckets/X`, where V2 is another view of the same project. This bypasses the last-bucket rule, leaves V1's default/done bucket ids dangling and leaves `task_buckets` inconsistent. Same project only.
Details
`canDoBucket` (`pkg/models/kanban_permissions.go:45-56`) checks that the bucket's real view is in the URL project, but never compares the stored `bb.ProjectViewID` with the requested `b.ProjectViewID`. `Bucket.Delete` then uses the URL view for the bucket count (`pkg/models/kanban.go:377`), the default/done bucket lookup (`:389`) and task reassignment (`:416`). On v1 a JSON body can also override the path view (Echo v5.3.1 binds the body last, and `pkg/web/handler` never re-applies path params).
Impact
Low. Needs write access to the project and only affects that project's own views: V1 can end up with no buckets, stale default/done bucket references and task bucket rows that were never reassigned. No cross-project access.
Fix
Reject `bb.ProjectViewID != b.ProjectViewID` in `canDoBucket`, with no `!= 0` exemption: every caller passes a view (`pkg/routes/api/v2/buckets.go:151`, `pkg/models/kanban_task_bucket.go:57`). This also hardens `Bucket.Update`.
_Found via internal security review (deep #38)._
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gocode.vikunja.io/api |
Sin parche | — | — | v0.24.6 afectada |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/go-vikunja/vikunja/security/advisories/GHSA-9xh7-5jg8-mf43Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
