User with no permissions can access full wdcalendar feed
A user account with no permissions could access the full calendar data feed by directly requesting the wdcalendar endpoint. This exposed patient appointment details, billing information, and personal data.
- Triaged in 4 days
- Fixed in 10 days
- Paid in 10 days
- Disclosed after 6 months
Hi All, I've found a vulnerability related to access the calendar when a user has no permissions.
##Vulnerability
I've create a doctor's account with a user who has no permission. Browsing the site, I noticed a call to https://1337test.drchrono.com/wdcalendar/datafeed/105756?method=list&showdate=5%2F27%2F2016&viewtype=examroom&timezone=0&doctors[]=99120
Using this URL via the account with no permissions appears to return the full calendar feed (I've trimmed it for this report):
{"templates": [], "start": "05/27/2016 00:00", "end": "05/28/2016 00:00", "events": [["30273638", "Daniel Kivatinos: Exam 4", "05/27/2016 09:00", "05/27/2016 09:45", "0", "0", "0", "2", "4", "#BFBFFF", {"provider_id": 99120, "secondary_insurer": " ", "primary_insurer": " ", "billing_status": "", "duration": 45, "appt_is_break": false, "scheduled_time": "09:00 AM", "appointment_status": "", "patient_name": "Daniel Kivatinos", "chartid": "KIDA000005", "provider": "[ [ 55 ] ] [ [ 55 ] ]", "patient_id_for_photo": 59493758, "exam_room_name": "Exam 4", "real_examroom": 4, "view_id": "30273638", "display_examroom": 4, "reason": "General Visit", "birthday": "03/20/1980", "date": "Friday May 27", "referring_doctor": "", "patient_phone": "", "office_name": "[ [ 55 ] ]", "copay": "No copay information on file", "patient_provider": "[ [ 55 ] ] [ [ 5*5 ] ]", "gender": "Male", "age": "36", "readable_datetime": "Fri May 27 at 09:00 AM", "office_id": 105756, "billing_status_disabled": false, "created_at_utc": "2016-05-25T20:21:28+00:00", "notes": ""}, 99120, ""],
##Steps to reproduce
- Create a doctor's account
- Add a staff member with no permissions
- If you have access to a proxy like burp, use it and visit the calendar
- Log out and log in as the staff member
- Open the proxy and grab the wdcalendar feed url
- Paste it in the browser
You now have access to the calendar data
##Vulnerability This seems to be a pretty significant information disclosure vulnerability. Each patient's billing information is available, some personal information (gener, age, phone, etc), appointment notes, etc. All appointments appear available as well.
Please let me know if you have any questions. Pete
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker with a low-privilege account could view all appointments, including patient billing information, personal details, and appointment notes.
What the attacker needed
A doctor's account; a staff member account with no permissions; a proxy tool like Burp
How it was found
- Create a doctor's account
- Add a staff member with no permissions
- Use a proxy to capture the calendar feed URL while visiting the calendar
- Log out and log in as the staff member
- Grab the wdcalendar feed URL from the proxy
- Paste the URL in the browser to access the calendar data
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 report has not been written yet. The Original tab links to the source.
A user with no permissions could still fetch the calendar data feed directly and see private patient details.
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.