sinatra is vulnerable to reflected file download. The vulnerability exists because of missing validations of attachment
function in base.rb
which allows an attacker to perform untrusted file downloads.
github.com/advisories/GHSA-8x94-hmjh-97hq
github.com/sinatra/sinatra/commit/1808bcdf3424eab0c659ef2d0e85579aab977a1a
github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b
github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw
lists.debian.org/debian-lts-announce/2023/01/msg00005.html
www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf