vendor:
Windows
by:
N/A
3.1
CVSS
MEDIUM
Information Disclosure / Elevation of Privilege
264
CWE
Product Name: Windows
Affected Version From: Windows 10 (1709, 1803)
Affected Version To: Windows 10 (1709, 1803)
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Windows
2020
Windows: FSCTL_FIND_FILES_BY_SID Information Disclosure
The FSCTL_FIND_FILES_BY_SID control code doesn’t check for permissions to list a directory leading to disclosure of file names when a user is not granted FILE_LIST_DIRECTORY access. At least when run on an NTFS volume no check seems to occur later in the process to ensure the caller would have some sort of access to the directory which would grant them the ability to list the directory. This allows a less privileged attacker to list the file names in a directory which they’ve been granted some access, but not FILE_LIST_DIRECTORY access.
Mitigation:
Ensure that the FSCTL_FIND_FILES_BY_SID control code is not used to list a directory without proper permissions.