2022-12-22 11:25:24 +00:00
|
|
|
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,admzip
|
|
|
|
file:
|
|
|
|
- extensions:
|
|
|
|
- all
|
|
|
|
matchers:
|
|
|
|
- type: regex
|
|
|
|
regex:
|
2023-06-28 05:19:55 +00:00
|
|
|
- "require\\\\('adm-zip'\\\\)"
|
|
|
|
- "\\.forEach\\(function .*\\(.*, \\.\\*\\) \\{"
|
|
|
|
- "\\.createWriteStream\\(.*\\) \\}, \\.\\*\\)"
|
|
|
|
- "\\.writeFile\\(.*\\)"
|
|
|
|
- "\\.writeFileSync\\(.*\\) \\}, \\.\\*\\)"
|
2022-12-22 11:25:24 +00:00
|
|
|
condition: or
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4b0a00483046022100d3f3fb61dfc42f08f4a89b791f5374e788d8d917e8c701876ebdf5f946e9a559022100a68b85ca82e5fc59479c77c56d1c3abdda513d5863ada63ba5b37d0b5ad5ae94:922c64590222798bb761d5b6d8e72950
|