From Dev.to
The Path You Checked Is Not the File You Opened: Practical openat2 on Linux
A file upload service does the responsible thing. It takes a user-supplied name, joins it to an upload directory, calls realpath(), checks that the result still starts with the upload directory, and o...
