Unsafe Archive Unpacking Labs and Semgrep Rules
The Doyensec blog post "Unsafe Archive Unpacking: Labs and Semgrep Rules" examines security risks in handling archive files across languages like Python, Ruby, Swift, Java, PHP, and JavaScript. It highlights vulnerabilities such as path traversal attacks, where files can be extracted to unintended directories using directory traversal sequences like ../
. The post includes proof-of-concept code for vulnerable and safe implementations and introduces Semgrep rules to detect these issues in codebases. Resources, including secure code examples and Semgrep rules, are available on GitHub at https://github.com/doyensec/Unsafe-Unpacking.
Comments
Post a Comment