Command Injection Affecting aaptjs package, versions *
Threat Intelligence
Exploit Maturity
Proof of concept
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-AAPTJS-6038595
- published 9 Sep 2024
- disclosed 29 Oct 2023
- credit Miguel Coimbra
How to fix?
There is no fixed version for aaptjs
.
Overview
aaptjs is an A node wraper for aapt
Affected versions of this package are vulnerable to Command Injection due to improper input sanitization via the add
function when using pipe (|
) after the zip file value.
PoC
const pkg = require('aaptjs');
pkg.add('test0.zip | touch exploited.txt', ['aaptjs_poc-zip-cmd-inject.js']);
References
CVSS Scores
version 3.1