Skip to content

Sinatra vulnerable to Reflected File Download attack

High
jkowens published GHSA-2x8x-jmrp-phxw Nov 26, 2022

Package

bundler sinatra (RubyGems)

Affected versions

>= 3.0, < 3.0.4
< 2.2.3

Patched versions

3.0.4
2.2.3

Description

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

Severity

High
8.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVE ID

CVE-2022-45442

Weaknesses

No CWEs

Credits