Admzip Path Overwrite
ID: admzip-path-overwrite
Severity: info
Author: me_dheeraj (https://twitter.com/Dheerajmadhukar)
Tags: file,nodejs,admzip
Description
Section titled “Description”Insecure ZIP archive extraction using adm-zip can result in arbitrary path over write and can result in code injection.
YAML Source
Section titled “YAML Source”id: admzip-path-overwrite
info: name: Admzip Path Overwrite author: me_dheeraj (https://twitter.com/Dheerajmadhukar) severity: info description: Insecure ZIP archive extraction using adm-zip can result in arbitrary path over write and can result in code injection. tags: file,nodejs,admzipfile: - extensions: - all matchers: - type: regex regex: - "require\\\\('adm-zip'\\\\)" - "\\.forEach\\(function .*\\(.*, \\.\\*\\) \\{" - "\\.createWriteStream\\(.*\\) \\}, \\.\\*\\)" - "\\.writeFile\\(.*\\)" - "\\.writeFileSync\\(.*\\) \\}, \\.\\*\\)" condition: or# digest: 490a00463044022061517677a0b41a2048a4ca951bba30d615fe02b7791d2e1a33d1f771f6f4da6f02204501001dfc2023b6991ba087accb1c0fc74c9c443dd212be4566ebbd7a5c6207:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "file/nodejs/admzip-path-overwrite.yaml"