GHSA-VXV5-CR34-5Q7G
update_item checks move rights on the destination folder instead of the item's source folder
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-VXV5-CR34-5Q7G divulgada · CVSS 5.4 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The item edit form (`update_item` in `app/sources/items.queries.php`) can also move the item to another folder. It computed the caller's rights once, on the client-supplied destination folder, and used that single answer both for the "delete on the old folder" check and for the edit check.
The folder the item actually lives in was never checked. The sibling paths `move_item` and `mass_move_items` already checked the source and the destination separately.
Impact
- 3.2.0.0 – 3.2.2.4: saving requires an active edition lock held by the caller, and that lock is only granted when the caller can edit in the item's current folder (resolved server-side). Users with only `R`, `NE` or `NDNE` access are therefore stopped. A user holding the `ND` level (edit, no delete) on a shared folder can move any item of that folder into another folder where they have full rights (their personal folder qualifies). The item disappears for every other user of the folder and does not go to the recycle bin. No read access is gained.
- 3.1.2 – 3.1.7.6: there was no edition-lock gate, so users with only `R`, `NE` or `NDNE` access on the source folder could also overwrite the item's content and move it, provided they had write access to another folder.
- Earlier 3.x releases: `update_item` performed no folder-rights check at all.
A user with no access to the item's folder is not affected.
Patches
Fixed in 3.2.2.5. `update_item` now evaluates the rights on the item's real folder (edit to save, delete to move the item out) and checks the destination folder separately (edit), like `move_item`.
Workarounds
None. Past moves appear in the item history as `at_modification` entries with the reason `at_category : <source> => <destination>`.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistnilsteampassnet/teampass |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/nilsteampassnet/TeamPass/security/advisories/GHSA-vxv5-cr34-5q7gLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
