Advisory

GHSA-2x8x-jmrp-phxw

Also known as: CVE-2022-45442

Summary

Sinatra vulnerable to Reflected File Download attack

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-11-30 21:18 UTC
Modified
2026-02-04 02:35 UTC

Affected packages and fixes

sinatra

RubyGems · All systems

Affected

  • introduced 3.0, fixed 3.0.4 (ecosystem)

Fixed versions

3.0.4

Fix

The export has no generic command for this ecosystem.

sinatra

RubyGems · All systems

Affected

  • introduced 2.0.0, fixed 2.2.3 (ecosystem)

Fixed versions

2.2.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences