Exploit database

GH-5aec02d53d0d7592d3e0dde899522418

actions-marketplace-validations/rafaelgss_is-my-node-vulnerable

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2022-43548

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files15

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
    }
  }
}