nconf-toml@0.0.2

TOML format plugin for nconf.

  • latest version

    0.0.2

  • first published

    10 years ago

  • latest version published

    9 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the nconf-toml package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Prototype Pollution

    nconf-toml is a TOML format plugin for nconf.

    Affected versions of this package are vulnerable to Prototype Pollution. It accepts values passed to .toml properties without sufficient validations.

    PoC

    var nt = require("nconf-toml")
    var fs = require('fs')
    var obj = {};
    
    console.log("before: " + {}.polluted);
    var _ = nt.parse(fs.readFileSync('./payload.toml', 'utf-8'));
    console.log("after: " + {}.polluted);
    

    How to fix Prototype Pollution?

    There is no fixed version for nconf-toml.

    *