GHSA-CHPJ-3VFF-555V
Secure Send / One-Time View link creation only checks sharekey possession: any authenticated user can read the password and details of any shared item
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-CHPJ-3VFF-555V divulgada · CVSS 6.5 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
When the One-Time View / Secure Send feature is enabled, the `generate_OTV_url` action of
`sources/items.queries.php` created a sharing link for any item ID supplied by the caller, as long
as the caller held a sharekey for that item. It never checked whether the caller currently has
access to the item. TeamPass gives every user who has an encryption key pair a sharekey for every
non-personal item, whatever their folder rights. Any authenticated user could therefore create a
link for an item stored in a folder they cannot access, then read the item through that link.
Details
- A sharekey is an encryption mechanism, not an authorization grant. The item key is wrapped for
- `generate_OTV_url` read the caller's `sharekeys_items` row for the requested item ID, decrypted
- The recipient page (`index.php?otv=1`) displayed that password together with the item's current
- Administrators, who cannot read item content by design, could read any shared item the same way.
- Before 3.2.1.2, other users' personal items were exposed as well. Before 3.2.1.0 they were also
The flaw has been present since 3.0.0.0.
Impact
Any authenticated user can read the password, label, login, URL and description of every
non-personal item in the instance. This includes read-only users and users without access to any
folder. Custom fields, attachments and TOTP secrets are not exposed through this path.
Preconditions:
- an administrator has enabled One-Time View (`otv_is_enabled`, off by default);
- the attacker has an account with an encryption key pair, which every user gets at first login.
Secondary effect: opening a link to an item configured for deletion after N consultations
decrements its counter and can deactivate the item.
Patches
Fixed in 3.2.2.6. The link creator's current rights are now checked when the link is created, and
again each time it is opened, before anything is decrypted. The check covers an active account,
not being an administrator, folder access, denials, the personal tree and item-level restrictions.
Existing links whose creator has no access, or has since lost it, stop working after the upgrade.
A link is no longer created when the item password cannot be decrypted.
Workarounds
Disable One-Time View under Settings → Options → Collaboration → "User can propose One-Time-View
links". While this option is off, the recipient page refuses every link, including existing ones.
Detection
Link creation was not logged. Each consultation appears in the item history as a "shown" event
attributed to the OTV system account. Links that have not expired yet remain in the `otv` table
with their `originator` and `item_id`. Comparing them with the creator's folder rights reveals
suspicious links.
Credits
Found and fixed by @guerricv in #5393.
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-chpj-3vff-555vLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
