Bug 2153363 (CVE-2022-45442) - CVE-2022-45442 sinatra: Reflected File Download attack
Summary: CVE-2022-45442 sinatra: Reflected File Download attack
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-45442
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2153366 2153367 2153368 2159420 2159421 2159422 2159423 2159424 2159425 2159426
Blocks: 2149170
TreeView+ depends on / blocked
 
Reported: 2022-12-14 13:18 UTC by Sandipan Roy
Modified: 2023-02-28 11:44 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Sinatra, a domain-specific language for creating web applications in Ruby. 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.
Clone Of:
Environment:
Last Closed: 2023-02-28 11:44:32 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:0393 0 None None None 2023-01-24 08:44:40 UTC
Red Hat Product Errata RHSA-2023:0427 0 None None None 2023-01-24 14:38:15 UTC
Red Hat Product Errata RHSA-2023:0506 0 None None None 2023-01-30 14:29:22 UTC
Red Hat Product Errata RHSA-2023:0527 0 None None None 2023-01-30 14:40:04 UTC
Red Hat Product Errata RHSA-2023:0855 0 None None None 2023-02-21 08:58:12 UTC
Red Hat Product Errata RHSA-2023:0857 0 None None None 2023-02-21 10:03:21 UTC
Red Hat Product Errata RHSA-2023:0974 0 None None None 2023-02-28 08:05:00 UTC

Description Sandipan Roy 2022-12-14 13:18:31 UTC
Sinatra is a domain-specific language for creating web applications in Ruby. 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. Version 2.2.3 and 3.0.4 contain patches for this issue.

https://github.com/advisories/GHSA-8x94-hmjh-97hq
https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b
https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw
https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf

Comment 2 Sandipan Roy 2022-12-14 13:22:11 UTC
Created golang-github-hub tracking bugs for this issue:

Affects: fedora-37 [bug 2153367]

Comment 6 errata-xmlrpc 2023-01-24 08:44:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support
  Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.2 Telecommunications Update Service

Via RHSA-2023:0393 https://access.redhat.com/errata/RHSA-2023:0393

Comment 7 errata-xmlrpc 2023-01-24 14:38:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2023:0427 https://access.redhat.com/errata/RHSA-2023:0427

Comment 8 errata-xmlrpc 2023-01-30 14:29:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Extended Update Support

Via RHSA-2023:0506 https://access.redhat.com/errata/RHSA-2023:0506

Comment 9 errata-xmlrpc 2023-01-30 14:40:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2023:0527 https://access.redhat.com/errata/RHSA-2023:0527

Comment 10 errata-xmlrpc 2023-02-21 08:58:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:0855 https://access.redhat.com/errata/RHSA-2023:0855

Comment 11 errata-xmlrpc 2023-02-21 10:03:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions

Via RHSA-2023:0857 https://access.redhat.com/errata/RHSA-2023:0857

Comment 12 errata-xmlrpc 2023-02-28 08:04:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:0974 https://access.redhat.com/errata/RHSA-2023:0974

Comment 13 Product Security DevOps Team 2023-02-28 11:44:30 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-45442


Note You need to log in before you can comment on or make changes to this bug.