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.

https://blog.doyensec.com/2024/12/16/unsafe-unpacking.html

Comments

Popular posts from this blog

Secure Vibe Coding Guide: Best Practices for Writing Secure Code

OWASP SAMM Skills Framework Enhances Software Security Roles

Opengrep: Open-Source SAST for Code Security and Innovation