Unauthenticated SharePoint File Enumeration and Downloading
A SharePoint document library was accessible without authentication, allowing the author to list and download files. An attacker could view and download sensitive documents and metadata if the library is misconfigured.
medium.com
Published on medium.com
Hi, I’m Ali Soltani, a passionate pentester with a focus on web application security and CVE research. During one of my recent security assessments, I came across an interesting way to enumerate and access sensitive files stored in Microsoft SharePoint.
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 SharePoint document libraries were configured to allow anonymous access, so access controls were not enforced.
Impact
An attacker could download sensitive documents and view metadata without authentication, potentially leading to massive data leaks.
What the attacker needed
SharePoint instance with misconfigured permissions; Knowledge of URL structure
The fix
Organisations should disable anonymous access to SharePoint document libraries and implement proper access controls based on user roles.
How it was found
- Navigate to the SharePoint masterpage catalog endpoint to list files.
- Check if the document library is accessible without authentication.
- Modify URLs to point to files in the Shared Documents folder.
- Download files directly or use tools to enumerate and bulk download.
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.
SharePoint is a Microsoft tool for storing and sharing files. Normally you need to log in to see files, but if a setting is wrong, anyone can browse and download them. This report shows how the author found such a misconfigured site and downloaded files without logging in.
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.