Skip to content
Misconfiguration Write-up Intermediate

Won’t Fix Vulnerabilities in Google Colab

The authors found that a user namespace command in a Colab notebook yields an unrestricted shell that Colab otherwise reserves for paid Pro users, and that a zombie child process keeps a reverse shell alive past the normal session limit. An attacker could use Colab's trusted IP reputation to run tools and maintain a command-and-control channel for hours.

medium.com

Published on medium.com

We recently discovered a significant vulnerability in Google Colab that allows users to bypass the platform’s container sandbox, accessing an unrestricted shell environment without paying for premium access. After reporting this vulnerability, Google responded with a “Won’t Fix” decision, raising concerns about…

N0t0d4y, on medium.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the container allows unprivileged user namespaces, so a notebook user can create a new namespace set and escape the intended restrictions, and the runtime's session cleanup does not reap a parent process that still has an unreaped zombie child.

Impact

An attacker could obtain an unrestricted shell without paying and could keep a reverse shell alive for hours from Google-owned addresses, which may make malicious traffic harder to detect; Google classed both issues as intended behaviour and did not fix them.

What the attacker needed

A free Google account; ability to run code in a Colab notebook; an external server for the reverse shell

How it was found

  1. Run a command in a Colab notebook that creates new mount, UTS, IPC, network, PID and user namespaces and starts a shell.
  2. Observe that the resulting shell is not subject to the usual container restrictions.
  3. Fork a child process that exits immediately so the parent keeps a zombie child.
  4. From the parent, open a reverse shell to a remote server and restart it if it drops.
  5. Keep the session running well past the normal limit, reportedly up to six hours.

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 write-up has not been written yet. The Original tab links to the source.

Google Colab is a free online notebook that runs code inside a locked-down container, a walled-off environment meant to stop you touching the host. The researchers showed that a Linux feature called namespaces, which creates isolated copies of system resources, let them open a normal shell without the usual limits, and that a leftover 'zombie' child process kept their connection alive after the session should have ended. Google said it would not fix either issue.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.