Skip to content
Access control Write-up Intermediate

The Admin Door That Never Closes: Privilege Escalation in a Boat’s Server

The initial-setup endpoint for creating the first administrator stayed reachable for the life of the server process and trusted a client-supplied user type field. Any unauthenticated attacker on the network could call it to create a new fully privileged admin account.

vashuvats Follow

Published on medium.com

SignalK Server — the open-source marine data server used on thousands of boats to aggregate NMEA 2000/0183 data — shipped an initial-setup endpoint, POST /skServer/enableSecurity, that was meant to be used exactly once: to let the first administrator bootstrap their account on a freshly installed, security-disabled…

Vashu Vats, 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 check for whether any users existed only decided whether the route was registered at server start, not whether each request was allowed, and the handler copied the client-supplied type field straight into the new user record.

Impact

An unauthenticated attacker could gain full administrator access, allowing them to change navigation data, alter configuration, install plugins and read restricted endpoints on a server the operator believed was secured.

What the attacker needed

Network access to the server; no account needed

The fix

The fix added a runtime flag checked on every call so the endpoint returns 403 once setup has run, plus an environment variable to disable activation entirely; it shipped in 2.24.0-beta.4.

How it was found

  1. Send a request to the enableSecurity endpoint to create the legitimate first admin account.
  2. Send the same request again with a different username and type set to admin.
  3. Log in with the new account and list the users to confirm it has administrator rights.

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.

When a server is first installed it has no accounts, so it offers a one-time page to create the first administrator. Here that page was never switched off after setup, and it believed whatever role the caller asked for. So anyone who could reach the server could create their own administrator account at any time.

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 vashuvats

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.