GeoGateway / geogateway-portal

http://geo-gateway.org
Apache License 2.0
2 stars 1 forks source link

replace sync-exec with child_process.execSync() in nodejs 0.12 #73

Closed webgisdeveloper closed 5 years ago

webgisdeveloper commented 5 years ago

security alert CVE-2017-16024 More information moderate severity Vulnerable versions: <= 0.6.2 Patched version: No fix

Affected versions of sync-exec use files located in /tmp/ to buffer command results before returning values. As /tmp/ is almost always set with world readable permissions, this may allow low privilege users on the system to read the results of commands run via sync-exec under a higher privilege user.

There is currently no direct patch for sync-exec, as the child_process.execSync function provided in Node.js v0.12.0 and later provides the same functionality natively.

The best mitigation currently is to update to Node.js v0.12.0 or later, and migrate all uses of sync-exec to child_process.execSync().

https://nvd.nist.gov/vuln/detail/CVE-2017-16024

webgisdeveloper commented 5 years ago

we didn't use sync-exec