curl · Report #812969
curl still vulnerable to SMB access smuggling via FILE URL on Windows
Informativestatus
8 Jan 2021disclosed
How it was found
Summary:
The released fix for CVE-2019-15601, SMB access smuggling via FILE URL on Windows, leaves curl still vulnerable to SMB access smuggling via FILE URLs.
- FILE URLs formatted as
file:////smb_server/smb_share/fileare not filtered. - FILE URLs which point to the global DOS name space, ??, and formatted as
file:///%3f%3f/UNC/smb_server/smb_share/file_nameorfile:///%3f%3f/GLOBAL/UNC/smb_server/smb_share/fileare not filtered.
Steps To Reproduce:
curl file:////localhost/c$/windows/win.inicurl file:///%3f%3f/UNC/localhost/c$/windows/win.inicurl file:///%3f%3f/GLOBAL/UNC/localhost/c$/windows/win.ini
The above examples will return the contents of C:\Windows\win.ini utilizing SMB to fetch the file via the local administrative share for the C drive. This will also work with remote shares.
Impact
A properly crafted URL could cause a user to unknowingly access a remote file.