Skip to content
Access control Write-up Intermediate

Chaining Logic Flaws: From KYC Bypass to Authenticated Time-Based

The application enforced phone verification only through a client-side redirect, allowing an attacker to bypass KYC and access the authenticated dashboard. Once inside, an authenticated time-based SQL injection and two IDOR flaws allowed creating and deleting records on behalf of other users.

samet Follow

Published on medium.com

The application enforces a mandatory phone verification step after registration at a specific gate. However, this was implemented as a weak client-side redirect.

samet, 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

Likely the KYC gate relied on a client-side redirect rather than a server-side check, and the API lacked server-side authorization and parameterised queries.

Impact

An attacker could bypass mandatory phone verification, access the authenticated dashboard, execute time-based SQL injection, and create or delete records belonging to other users.

What the attacker needed

A free account; ability to intercept and modify requests

The fix

The application should enforce KYC server-side, use parameterised queries, and verify object ownership on every create and delete request.

How it was found

  1. Register a new account.
  2. Intercept the redirect to the verification endpoint.
  3. Modify the URL to the user profile path and stop the page load before the redirect triggers.
  4. Use a Burp rule to automatically swap the verification URL with the profile URL in every outgoing request.
  5. Send a request to the case endpoint with a time-based SQL injection payload in the Id parameter and observe a 4-second delay.
  6. Intercept the delete request and change the object ID to a victim's ID.

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 app tried to force users to verify their phone by simply sending them to a different web address, but the check happened only in the browser. By changing the address or stopping the page load, someone could skip verification and reach the logged-in area. Inside, the app also trusted user-supplied IDs without checking ownership, and it inserted an ID directly into a database query, letting an attacker run database commands.

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 samet

View all

3 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.