CVE-2026-68746
Beschrijving NL
Niet veilig falen ('Failing Open') kwetsbaarheid in livebook-dev livebook stelt een niet-geverifieerde netwerkclient in staat om volledige toegang te krijgen tot een Livebook-server die identiteit afdwingt via Livebook Teams. Een Livebook Agent of App Server die is verbonden met Livebook Teams slaat de identifier op van de implementatiegroep waartoe hij behoort, en lost die identifier op tegen een lokaal in de cache opgeslagen lijst van implementatiegroepen op elk verzoek om te beslissen of Teams-identiteitshandhaving actief is. Livebook.Hubs.TeamClient.handle_call/3 in lib/livebook/hubs/team_client.ex maakt geen onderscheid tussen een implementatiegroep die niet kon worden opgelost en een groep die werd opgelost met de identiteitshandhaving uitgeschakeld: de clausule komt alleen overeen met het geval waarin een groep werd gevonden met de handhaving ingeschakeld, en valt door tot een catch-all die de handhaving meldt als uitgeschakeld voor al het andere. De twee naburige functies die beslissen over de toegang van de gebruiker en de toepassing lossen dezelfde identificatiecode op en behandelen hetzelfde onopgeloste resultaat als een ontkenning. Wanneer de identiteitsstatus wordt gerapporteerd als uitgeschakeld, retourneert Livebook.ZTA.LivebookTeams.authenticate/3 in lib/livebook/zta/livebook_teams.ex lege identiteitsmetagegevens en kan het verzoek worden voortgezet in plaats van gestopt. LivebookWeb.UserPlug.build_current_user/3 voegt die lege metagegevens samen in een nieuw gebouwde gebruiker, waarvan het toegangstype standaard volledige toegang heeft, en LivebookWeb.AuthPlug.authorized?/1 verleent toegang aan elke gebruiker die volledige toegang heeft. De id in de cache wordt onoplosbaar wanneer de implementatiegroep waarnaar deze verwijst, wordt verwijderd terwijl de agent niet is verbonden om de wijziging te ontvangen, het meest concreet wanneer een implementatiegroep wordt verwijderd tijdens het venster waarin een agent wordt losgekoppeld of opnieuw wordt verbonden. De client verwijdert de groep uit de lijst in de cache zonder de id te wissen die ernaar verwijst. Elke client die de betreffende server via het netwerk kan bereiken, krijgt vervolgens dezelfde toegang als een volledig geprivilegieerd lid van de organisatie, inclusief de mogelijkheid om notebooks en geconfigureerde geheimen te lezen, code uit te voeren tijdens de runtime van de server en de werking ervan te verstoren. Dit nummer heeft invloed op het livebook: van 0.19.7 tot 0.19.9.
Origineel (Engels) tonen
Not Failing Securely ('Failing Open') vulnerability in livebook-dev livebook allows an unauthenticated network client to obtain full access to a Livebook server that enforces identity through Livebook Teams.
A Livebook Agent or App Server connected to Livebook Teams caches the identifier of the deployment group it belongs to, and resolves that identifier against a locally cached list of deployment groups on every request in order to decide whether Teams identity enforcement is active. Livebook.Hubs.TeamClient.handle_call/3 in lib/livebook/hubs/team_client.ex does not distinguish a deployment group that could not be resolved from one that was resolved with identity enforcement switched off: the clause matches only the case where a group was found with enforcement enabled, and falls through to a catch-all that reports enforcement as switched off for everything else. The two neighbouring functions that decide user and application access resolve the same identifier and treat the same unresolved result as a denial.
When the identity status is reported as switched off, Livebook.ZTA.LivebookTeams.authenticate/3 in lib/livebook/zta/livebook_teams.ex returns empty identity metadata and allows the request to continue instead of halting it. LivebookWeb.UserPlug.build_current_user/3 merges that empty metadata into a newly built user, whose access type defaults to full access, and LivebookWeb.AuthPlug.authorized?/1 grants access to any user holding full access.
The cached identifier becomes unresolvable when the deployment group it refers to is deleted while the agent is not connected to receive the change, most concretely when a deployment group is deleted during the window in which an agent is disconnected or reconnecting. The client removes the group from its cached list without clearing the identifier that refers to it. Any client able to reach the affected server over the network is then granted the same access as a fully privileged member of the organisation, including the ability to read notebooks and configured secrets, execute code on the server's runtime, and disrupt its operation.
This issue affects livebook: from 0.19.7 before 0.19.9.