Skip to content
Business logic Write-up Beginner

How I Bypassed Random Medical Center Assignment During Appointment Booking

The booking API accepted a client-supplied medical_center ID instead of enforcing random assignment, letting a user choose any medical centre. An attacker could book an appointment at a preferred centre rather than the randomly assigned one.

MunnašŸŽ­ Follow

Published on infosecwriteups.com

Hey folks, I’m Munna, also known as spy0x1in the security circles, a security researcher and penetration tester. I usually spend my time poking around applications, testing boundaries, and uncovering the little details that can sometimes lead to big vulnerabilities.

MunnašŸŽ­, on infosecwriteups.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 trusted a client-supplied medical_center parameter and did not enforce the random assignment server-side.

Impact

A user could book an appointment at any medical centre of their choice instead of the randomly assigned one, breaking the intended business logic.

What the attacker needed

A test account; an intercepting proxy; a payment method for the $5 fee

The fix

The server should validate the medical_center parameter and enforce random assignment in the backend, only accepting server-issued values.

How it was found

  1. Log in to a test account and open the appointment booking form.
  2. Fill in the required details but do not submit yet.
  3. Enable an intercepting proxy to capture requests.
  4. Submit the form and intercept the POST request to the booking endpoint.
  5. Change the medical_center field to a valid centre ID.
  6. Forward the request and complete the payment to confirm the chosen centre.

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.

When you book an appointment, the website is supposed to pick a medical centre for you at random. But the request your browser sends includes a field for the centre, and the server trusted whatever value was put there. By changing that field, the researcher could pick any centre they wanted.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by MunnašŸŽ­

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.