Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
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.
Last update: 2023-06-11
Depends on packages which need a new maintainer
The packages that ruby-sinatra depends on which need a new maintainer are: