Skip to content
Access control Write-up Intermediate

When Vulnerabilities Become Dangerous: The Exposed API That Reached Real World Locomotives

An internet-facing backend API for a locomotive management platform lacked authentication and authorization controls, allowing unauthenticated users to read locomotive data and reach command-related endpoints. An attacker could potentially create or publish commands intended for real trains, though the testers stopped before sending operational commands.

Broken Access Pentests Follow

Published on brokenaccesspentests.medium.com

Most application vulnerabilities never leave the screen. They expose data, modify an account, or break an assumption inside a web application.

Broken Access Pentests, on brokenaccesspentests.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 backend API did not enforce authentication or authorization on sensitive endpoints, and self-registration plus exposed API documentation made the functionality easy to discover.

Impact

An unauthenticated attacker could read locomotive data and reach command functionality that could potentially affect real trains, though the testers deliberately stopped before sending operational commands.

What the attacker needed

Internet access to the backend API; no account required for some endpoints; self-registration available

The fix

The API should enforce authentication and authorization on every sensitive operation independently, rather than relying on a front-end to hide functionality.

How it was found

  1. Map the application's attack surface and find the backend service.
  2. Read the exposed API documentation to learn available endpoints.
  3. Send read-only requests with guessed unit identifiers to retrieve locomotive information.
  4. Send a request to a command-related endpoint to check whether access controls are enforced.

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.

This is a broken access control bug: the API did not check who was calling it before letting them use sensitive functions. Anyone who found the API could read train data and reach the part that sends commands to real locomotives, which is dangerous because those commands could affect physical equipment.

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.

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.