Sensitive Data in Open File Shares
File shares holding sensitive information grant access to broad groups such as Everyone or Domain Users, exposing it to people with no business need to see it.
| Severity | High |
| CVSS 3.1 | 7.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N Open in the calculator |
| CVSS 4.0 | 7.1 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N Open in the calculator |
| CWE | CWE-552: Files or Directories Accessible to External Parties |
| OWASP Top 10 | A01:2025 Broken Access Control |
| MITRE ATT&CK | T1039 Data from Network Shared Drive, T1135 Network Share Discovery, T1080 Taint Shared Content |
| Category | Broken Access Control |
Description
One or more file shares hold sensitive information but grant access to broad groups, such as Everyone, Authenticated Users or Domain Users, so any member of staff, any compromised account and sometimes any device on the network can read it. Typical findings include personnel and payroll files, scanned identity documents, customer and patient records, financial exports, database and system backups, virtual machine disk images, and configuration files and scripts.
Any user, or any attacker who compromises a single ordinary account, can copy the exposed data: access usually needs a valid domain account, which is a low barrier once an attacker has a foothold. Where the data includes personal data, this may amount to a personal data breach with reporting obligations under data protection law, as well as commercial and reputational harm. Configuration files, scripts and backups often contain information that helps an attacker move further, such as server names and connection details. Where the broad access includes write permission, an attacker can also alter or delete files, plant malicious documents or executable files for other users to open, or encrypt the data.
On Windows, the access a user actually has is the more restrictive of the share permissions and the NTFS permissions. Shares are often created with Everyone allowed full control at share level, so the folder permissions are the only real control, and they are frequently inherited unchanged from a permissive parent folder. Over time, data is copied into these locations without anyone reviewing who can reach it.
The issue is found by enumerating shares with an ordinary domain account and searching their contents, with tools such as Snaffler, NetExec's spider modules, smbmap or PowerView. Where the files include passwords or keys, that exposure is normally reported separately because of its direct impact.
Remediation
Bring share access into line with business need:
- Remove sensitive data that does not need to be on a file share, such as old exports, backups and copies of personal data, or move it to a location restricted to the people who need it.
- Replace Everyone, Authenticated Users and Domain Users in the NTFS permissions of sensitive folders with role-based groups, grant write access only where it is needed, and stop inheritance from permissive parent folders where necessary.
- Give each share an owner in the business who approves who has access, and review the permissions regularly.
- Enable access-based enumeration on shares (the share's
FolderEnumerationModeset toAccessBased), so that users see only the folders they can open. This reduces discovery but does not change permissions. - Audit access to sensitive folders, and search file shares for sensitive data on a regular schedule, using the same kind of tooling an attacker would.
As an interim measure, restrict the specific folders found during testing. Confirm the fix by repeating the share search with an ordinary domain account and checking that the sensitive files can no longer be read.
References
Add This Finding to Your Library
In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.
Free trialYour trial starts when your portal goes live, not when you sign up, so the time you spend setting up does not count. · No card required
Only need the reporting? Our reporting tool is free and open source, with the same library.