Skip to content
Access control Write-up Intermediate

When a UUID Becomes a Password: Principal-Unbound Capabilities in

Nezha's WebSocket terminal and file-manager endpoints authorised access solely by the stream UUID, without checking that the requesting user was the stream's creator. Any authenticated dashboard user who learned another user's stream UUID could attach to that stream and inherit the creator's terminal or filesystem access on the managed server.

Berkan SAL Follow

Published on medium.com

There is a security assumption I keep seeing in multi-user systems: if an identifier is random enough, knowing it must imply authorization. Sometimes the identifier is a UUID or a WebSocket path.

Berkan SAL, 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

The temporary stream object stored only its identifier and not the identity of the user who created it, so the WebSocket attachment handler could check existence but not ownership.

Impact

An authenticated low-privileged user could hijack another user's terminal or file-manager session, gaining interactive shell access or filesystem control on the managed server.

What the attacker needed

An authenticated dashboard account; knowledge of another user's stream UUID; the victim has an active terminal or file stream

The fix

The stream object was changed to store the creator's user ID, and attachment now checks that the requester is the creator or an administrator before upgrading the WebSocket; this was fixed in v2.0.10.

How it was found

  1. A legitimate user creates a terminal session and receives a random stream UUID.
  2. The browser connects to the WebSocket endpoint for that stream UUID.
  3. The server checks only that the stream UUID exists, then upgrades the connection and attaches it to the stream.
  4. Another authenticated user who obtains the stream UUID connects to the same endpoint and is attached to the existing stream.

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.

A UUID is a long random-looking string used to name something, like a ticket number. The software assumed that only the right person could know the ticket number, so it let anyone holding it in. But ticket numbers can leak through logs or browser history, and then a stranger can use someone else's session.

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.

More by Berkan SAL

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.