Description
dot-access 0.0.3 through 1.0.0 contains a code injection vulnerability that allows remote attackers to execute JavaScript by supplying crafted paths to get(). The path is concatenated into a new Function body in index.js, so attackers can reach constructor.constructor to load child_process and run operating system commands in the Node.js process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ntharim | dot-access | 0.0.3 – ≤ 1.0.0 | — |
References
- https://gist.github.com/R3tro16/e094e4318a040f189fd5d2d33e8c3ec2 third-party-advisory
- https://github.com/ntharim/dot-access/blob/v1.0.0/index.js#L1-L7 technical-description
- https://github.com/ntharim/dot-access product
- VulnCheck Advisory: dot-access 0.0.3 through 1.0.0 Code Injection via get() Path Argument third-party-advisory