How I stole ~2000 Emails from your email account.
The author found that the Outlook Web App (OWA) directory listing loaded all users' email addresses via sequential GET requests as the user scrolled. By saving the browser's network traffic as a HAR file and extracting email addresses, the author obtained nearly 2000 employee emails from one compromised account.
medium.com
Published on medium.com
So was recently pentesting this client and noticed something cool and thought i’d share.
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 OWA directory page loads user contact information in bulk through sequential requests without restricting access to only authorised users, allowing any authenticated user to enumerate all addresses.
Impact
An attacker with one valid account could obtain the email addresses of nearly all employees, which could then be used for further attacks such as password spraying.
What the attacker needed
One valid OWA account; access to the People tab
How it was found
- Log in to OWA with a compromised account.
- Go to the 'People' tab and click 'All Users'.
- Scroll through the list to trigger loading of all users.
- Open the browser's Network tab to see the GET requests containing email addresses.
- Save the network log as a HAR file.
- Use grep to extract email addresses from the HAR file and filter for the target domain.
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.
The author gained access to one email account and then used the 'People' tab to view all users in the company directory. The web page loaded more users as they scrolled, and the browser's network log recorded every request, which contained email addresses. By saving that log and searching it, they collected all the addresses at once.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.