GHSA-6CPC-MJ5C-M9RQ

Vulnerability from github – Published: 2019-02-18 23:40 – Updated: 2020-08-31 18:10
VLAI?
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 observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…