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

 

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

Published: February 5, 2025


Vulnerability identifier: #VU103627
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2024-21510
CWE-ID: CWE-807
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Sinatra
Affected software:
Sinatra

Detailed vulnerability description

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to excessive data output by the application. A remote attacker when making a request to a method with redirect applied, can 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.


How to mitigate CVE-2024-21510

Install updates from vendor's website.

Sources