Exploit databaseDownload repository ZIP
GH-5aec02d53d0d7592d3e0dde899522418
actions-marketplace-validations/rafaelgss_is-my-node-vulnerable
Sources for CVE-2022-43548
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files15
actions-marketplace-validations/rafaelgss_is-my-node-vulnerableRevision 3267ec705195
- .github/
- dist/
- .gitignore
- LICENSE
- README.md
- action.js
- action.yml
- ascii.js
- eol-versions.js
- index.js
- is-vulnerable.js
- package-lock.json
- package.json
- setup-test.js
- test.js
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
index.js
JavaScript · 741 bytes#!/usr/bin/env node
const isOldEnough = require('./eol-versions')
const ascii = require('./ascii')
// To guarantee support on older versions and do not drastically impact
// the maintenance of this module, we check if process.version is too old
// and throw EOL warning when true.
if (isOldEnough(process.version)) {
console.log(ascii.danger)
const msg = process.version + ' is end-of-life. There are high chances of being vulnerable. Please upgrade it.'
console.log(msg)
process.exit(1)
} else {
// CLI
if (require.main === module) {
require('./is-vulnerable').cli(process.version, require('os').platform())
} else {
module.exports = {
isNodeVulnerable: require('./is-vulnerable').isNodeVulnerable
}
}
}