Multipart file-part filename extensions not scanned for upload bypasses
Description
Multipart file-part filenames were not run through the file-upload extension-bypass detection, so an attacker could deliver a double-extension or decoded-truncation shell filename (shell.php%2500.txt, shell.asp%253B.jpg) in a multipart upload and evade the file-upload detection category.
Impact
Detection bypass for the file-upload category via multipart uploads, in every version multipart scanning shipped.
Affected
guard-core < 3.13.0.
Patched in 3.13.0
File-upload extension bypass detection now scans multipart file parts, and the decoded-view truncation pattern (NUL / semicolon / trailing-dot) is registered in the URL-decoded view only.
Workaround
Validate uploaded filenames and extensions upstream; reject double-extension or encoded-truncation names.