NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · RubyGems

CVE-2024-21510: Sinatra vulnerable to Reliance on Untrusted Inputs in a Security Decision

mediumCVSS 4.0 5.3 · 3.1 5.4GHSA-hxx2-7vcw-mqr3

Versions of the package sinatra from 0.0.0 are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the X-Forwarded-Host (XFH) header. When making a request to a method with redirect applied, it is possible to trigger an Open Redirect Attack by inserting an arbitrary address into this header.

Published Nov 1, 2024 · Updated Nov 18, 2024

Affected packages

sinatra

Ecosystem
RubyGems
Affected
< 4.1.0
Fixed in
4.1.0
Check
bundle info sinatra

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Versions of the package sinatra from 0.0.0 are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the X-Forwarded-Host (XFH) header. When making a request to a method with redirect applied, it is possible to trigger an Open Redirect Attack by inserting an arbitrary address into this header. If used for caching purposes, such as with servers like Nginx, or as a reverse proxy, without handling the X-Forwarded-Host header, attackers can potentially exploit Cache Poisoning or Routing-based SSRF.

Credited to ThomasKoppensteiner.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More RubyGems vulnerabilities

All RubyGems entries