Skip to content
IDOR Write-up Intermediate

How I Discovered Critical Bugs in an Android Employee Management

The Android employee attendance app trusted client-supplied geolocation coordinates and a userId inside the punch-in request body, so an attacker could punch in from any location and on behalf of another user. The face-registration step also accepted a replayed video of a blink, letting someone enrol a face without a live person present.

MR SHAN Follow

Published on 0xsh4n.medium.com

Welcome back to another story from my Android pentesting journey. Myself Shan, A Application Security Analyst Doing penetration testing on Web, Mobile applications, and Penetration testing on Linux, Windows environment.

MR SHAN, on 0xsh4n.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 server trusted client-supplied values (latitude, longitude and userId in the request body) instead of deriving them from the authenticated session and verifying location independently, and the liveness check accepted a replayed video.

Impact

An attacker could falsify attendance location and record punch-ins under other employees' accounts, and could complete face registration with a replayed video; the text does not show any defence blocking these actions.

What the attacker needed

A valid account in the app; ability to intercept app traffic; a recorded video of a blink

The fix

The server should derive the user identity from the authenticated session rather than the request body, verify location server-side, and use a liveness check that rejects replayed video.

How it was found

  1. Log in to the app and trigger a punch-in request while capturing traffic in a proxy.
  2. Change the latitude and longitude values in the captured request and forward it.
  3. Confirm in the admin portal that the spoofed location was recorded.
  4. Create a new user in the admin portal and start face registration.
  5. Record a video of a blink and play it back in front of the face scanner to complete registration.
  6. Change the userId inside the punch-in JSON body to another user's id and send the request.

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 app lets staff clock in and out from their phone. The phone sends the location and the user's identity to the server, and the server believed whatever the phone said. That meant someone could pretend to be at the office when they were not, or clock in as a colleague, and the face check could be fooled by playing a video.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.