Intent-Code Divergence
High
- Confidence
- 99% confidence
- Finding
- The script claims to perform a passive installation check, but loadVersionInfo() executes targetDir/version.js via require(). Because targetDir is user-supplied, an attacker can place arbitrary JavaScript in version.js and get code execution merely by invoking the checker, violating the expectation of a read-only integrity check.
