JupyterLab Uncontrolled Search Path Element Local Privilege Escalation Vulnerability
The jupyter-lab process loads a configuration script from an unsecured location, allowing a local attacker with low-privileged code execution to escalate privileges and run arbitrary code as the target user. The vulnerability is triggered only when the target user uses the product.
This vulnerability allows local attackers to escalate privileges on affected installations of JupyterLab. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the jupyter-lab process searches for and loads a configuration script from a directory that is writable by other local users, without proper access controls.
Impact
An attacker with low-privileged code execution could escalate privileges and execute arbitrary code in the context of the target user, but only when the target user uses the product.
What the attacker needed
Local low-privileged code execution; target user uses JupyterLab
The fix
Jupyter has issued an update to correct this vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a local privilege escalation bug in JupyterLab. If an attacker can already run some code on the machine as a low-privileged user, they can place a malicious configuration file in a location that JupyterLab loads automatically. When the victim uses JupyterLab, the malicious file runs with the victim's permissions, letting the attacker take over their account.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.