Skip to content
Access control Write-up Intermediate

The not so ultra lock

The mobile app API lacked authentication and authorization, allowing an attacker to enumerate user IDs, retrieve personal data and lock PINs, and change the user ID to impersonate any user and control their locks. Additionally, the BLE encryption key could be obtained and brute-forced, and the physical lock could be picked or bypassed.

pentestpartners.com

Published on pentestpartners.com

I became aware of the Ultraloq from U-tec a few months ago. For a room door lock it has a range of what look like really good features:

PTP Admin, on pentestpartners.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 API endpoints lacked any authentication or authorization checks, and the BLE key was derived from a static salt and a brute-forceable token.

Impact

An attacker could retrieve personal data to locate a house, reset lock PINs to lock out users or unlock doors, and brute-force the BLE interface; the API was eventually fixed but BLE and physical issues remain.

What the attacker needed

Access to the mobile app API; knowledge of a valid user ID

The fix

The API was fixed, but the BLE brute-force issue and the mechanical lock bypass were not addressed.

How it was found

  1. Intercept the login process and change the userid of the logged in user.
  2. The app then functions as the user with the provided userId, giving full control over their locks.

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.

The lock's phone app talks to a server without checking who is making the request. By changing a number in the request, an attacker could pretend to be any user and control their locks. The lock also used a weak Bluetooth key and a poor physical lock.

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.