ghsa-6cpc-mj5c-m9rq
Vulnerability from github
Published
2019-02-18 23:40
Modified
2020-08-31 18:10
Summary
Arbitrary File Write in cli
Details

Affected versions of cli use predictable temporary file names. If an attacker can create a symbolic link at the location of one of these temporarly file names, the attacker can arbitrarily write to any file that the user which owns the cli process has permission to write to.

Proof of Concept

By creating Symbolic Links at the following locations, the target of the link can be written to. lock_file = '/tmp/' + cli.app + '.pid', log_file = '/tmp/' + cli.app + '.log';

Recommendation

Update to version 1.0.0 or later.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "cli"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.0.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2016-10538"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-22"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T21:18:53Z",
    "nvd_published_at": null,
    "severity": "LOW"
  },
  "details": "Affected versions of `cli` use predictable temporary file names. If an attacker can create a symbolic link at the location of one of these temporarly file names, the attacker can arbitrarily write to any file that the user which owns the `cli` process has permission to write to.\n\n\n## Proof of Concept\n\nBy creating Symbolic Links at the following locations, the target of the link can be written to.\n```\nlock_file = \u0027/tmp/\u0027 + cli.app + \u0027.pid\u0027,\nlog_file = \u0027/tmp/\u0027 + cli.app + \u0027.log\u0027;\n```\n\n\n## Recommendation\n\nUpdate to version 1.0.0 or later.",
  "id": "GHSA-6cpc-mj5c-m9rq",
  "modified": "2020-08-31T18:10:40Z",
  "published": "2019-02-18T23:40:03Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2016-10538"
    },
    {
      "type": "WEB",
      "url": "https://github.com/node-js-libs/cli/issues/81"
    },
    {
      "type": "WEB",
      "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809252"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-6cpc-mj5c-m9rq"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/advisories/95"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [],
  "summary": "Arbitrary File Write in cli"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

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.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • 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.


Loading…

Loading…