Skip to content
Access control Write-up Intermediate

How a Public Token Led to Unauthenticated Read and Write Access on an IoT Platform

A public token from the login page was accepted by internal API endpoints as proof of authentication, allowing unauthenticated read and write access to IoT inventory data. An attacker could view device, group, and location information and modify configuration records without logging in.

ahmadfarazpz Follow

Published on medium.com

During authorized security testing of an IoT management platform, I identified a critical broken access control issue affecting multiple API endpoints.

Ahmad Faraz, 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 backend validated the presence of a public token but did not enforce authentication or authorization before processing sensitive API logic, and it trusted client-supplied identifiers instead of deriving access from an authenticated user context.

Impact

An unauthenticated attacker could access sensitive IoT inventory data and modify configuration records, potentially causing cross-tenant data exposure and operational disruption.

What the attacker needed

No account needed; access to the public login page

The fix

The vulnerability was fixed by the development team, as stated in the report.

How it was found

  1. Obtain the public token from the login page without submitting credentials.
  2. Send requests with the token to internal API routes for device, group, and location functionality.
  3. Observe that multiple endpoints respond successfully without an authenticated session.
  4. Send a controlled write request with a harmless test value to a state-changing endpoint.
  5. Check the affected field before and after the request to confirm the value and update timestamp changed.
  6. Restore the original value after confirming the write.

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 token is a small piece of data a website gives to a visitor, often to prevent cross-site request forgery. Here, the site gave a token to anyone visiting the login page, but the backend wrongly treated that token as proof that the user was logged in. This let anyone read and change data without an 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.

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.