Skip to content
Access control Write-up Beginner

Unauthorized Therapist Association Vulnerability

A patient could change the URL from the patient section to the therapist section and then manipulate the therapist ID in a request to add themselves to any therapist's account. This gave unauthorised access to sensitive therapist and patient data.

EL_cazad0r Follow

Published on medium.com

In the world of digital health platforms, security is paramount. These platforms house highly sensitive information, making them prime targets for attackers.

EL_Cazad0r, 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 platform relied on hiding the therapist interface behind a different URL path and did not check the user's role or the therapist ID on the server when adding a patient.

Impact

A patient could gain unauthorised access to a therapist's account and potentially view confidential data about other patients under that therapist's care.

What the attacker needed

A patient account; ability to intercept HTTP requests

The fix

The platform should enforce role-based access control on the server so that only therapists can access therapist functions and only valid associations are accepted.

How it was found

  1. Log in as a patient and note the patient URL.
  2. Change the URL path from patient to therapist.
  3. Use the therapist interface to start adding a patient.
  4. Intercept the request and change the therapist ID to a real therapist's ID.
  5. Forward the request to add yourself to that therapist's account.

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 patient logged into a health platform could simply edit the web address to reach a part of the site meant only for therapists. Once there, they could change a number in the request to attach themselves to any therapist's account, letting them see private information about other patients.

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 EL_cazad0r

View all

1 more disclosed report, 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.