GHSA-2x8x-jmrp-phxw

Suggest an improvement
Source
https://github.com/advisories/GHSA-2x8x-jmrp-phxw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-2x8x-jmrp-phxw/GHSA-2x8x-jmrp-phxw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2x8x-jmrp-phxw
Aliases
Published
2022-11-30T21:18:34Z
Modified
2023-12-06T00:47:27.818197Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Sinatra vulnerable to Reflected File Download attack
Details

Description

An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a response when the filename is derived from user-supplied input.

References

  • https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf
  • https://github.com/advisories/GHSA-8x94-hmjh-97hq
References

Affected packages

RubyGems / sinatra

Package

Name
sinatra
Purl
pkg:gem/sinatra

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.0
Fixed
3.0.4

Affected versions

3.*

3.0.0
3.0.1
3.0.2
3.0.3

RubyGems / sinatra

Package

Name
sinatra
Purl
pkg:gem/sinatra

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.2.3

Affected versions

2.*

2.0.0
2.0.1.rc1
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.0.8
2.0.8.1
2.1.0
2.2.0
2.2.1
2.2.2