Ruby/sinatra/2.2.0
Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort.
https://rubygems.org/gems/sinatra
MIT
1 Security Vulnerabilities
Sinatra vulnerable to Reflected File Download attack
Published date: 2022-11-30T21:18:34Z
CVE: CVE-2022-45442
Links:
- https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw
- https://nvd.nist.gov/vuln/detail/CVE-2022-45442
- https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b
- https://github.com/advisories/GHSA-8x94-hmjh-97hq
- 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-2x8x-jmrp-phxw
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-45442.yml
- https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html
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
Affected versions:
["2.1.0", "2.0.8.1", "2.0.8", "2.0.7", "2.0.6", "2.0.5", "2.0.4", "2.0.3", "2.0.2", "2.0.1", "2.0.1.rc1", "2.0.0", "2.2.0", "2.2.1", "2.2.2", "3.0.0", "3.0.1", "3.0.2", "3.0.3"]
Secure versions:
[3.0.4, 2.2.3, 3.0.5, 2.2.4, 3.0.6, 3.1.0, 3.2.0, 4.0.0]
Recommendation:
Update to version 4.0.0.
103 Other Versions
Version | License | Security | Released | |
---|---|---|---|---|
0.1.6 | UNKNOWN | 3 | 2009-07-25 - 17:52 | almost 15 years |
0.1.5 | UNKNOWN | 3 | 2009-07-25 - 17:52 | almost 15 years |
0.1.0 | UNKNOWN | 3 | 2009-07-25 - 17:52 | almost 15 years |