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.
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.
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
- Log in as a patient and note the patient URL.
- Change the URL path from patient to therapist.
- Use the therapist interface to start adding a patient.
- Intercept the request and change the therapist ID to a real therapist's ID.
- 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.