Path.Combine Can Lead to Security Vulnerabilities in .NET Applications
I recently came across some interesting behavior with .NET’s Path.Combine in a web application’s file upload functionality. Despite solid efforts by the development team to prevent hacker path traversal shenanigans (by blocking the usual dangerous characters), the application was still vulnerable due to the way Path.Combine treats certain input parameters and NTFS filesystem internals.

