GHSA-6RXF-4HH9-PP46
Kimai API Team Update Endpoint Removes Team Memberships Before Validating Replacement Members
Texto original en inglés · Ver en español
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-6RXF-4HH9-PP46 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
A business logic / improper authorization vulnerability in Kimai allows an authenticated teamlead with team edit permissions to remove all members and teamleaders from a team by submitting an invalid `members` payload to the team update API endpoint.
Kimai exposes a dedicated endpoint for removing a single team member:
DELETE /api/teams/{id}/members/{userId}This endpoint explicitly prevents removal of a teamlead. However, the generic team update endpoint accepts a `members` parameter and removes all existing team members before validating the submitted replacement member list:
PATCH /api/teams/{id}As a result, an attacker with permission to edit a team can submit a malformed `members` value. Kimai returns a validation error, but the existing team membership rows have already been deleted from the database. This allows the attacker to bypass the dedicated teamlead-removal protection and leave the team with no members or teamleaders.
Details
Details and POC were submitted, but removed for security reasons.
Impact
This is a business logic / improper authorization vulnerability affecting team membership integrity.
An authenticated teamlead or other user with permission to edit a team can remove all members and teamleaders from that team by submitting a malformed `members` payload to the team update API endpoint. This bypasses the intended protection in the dedicated member-removal endpoint, which prevents direct removal of teamleaders.
Successful exploitation can corrupt Kimai’s team-based access control relationships. Affected teams can be left without any members or teamleaders, disrupting team administration and potentially removing legitimate users’ access to customers, projects, activities, timesheets, and other team-scoped data.
Any Kimai deployment that allows non-admin users, such as teamleads, to edit teams may be affected.
Solution
Kimai now validates the replacement member list before making any changes to the existing team membership. If the submitted data is invalid, the original team members remain unchanged.
See <https://www.kimai.org//en/security/ghsa-6rxf-4hh9-pp46> for more details
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistkimai/kimai |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/kimai/kimai/security/advisories/GHSA-6rxf-4hh9-pp46Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
