Reliance on Untrusted Inputs in a Security Decision Affecting sinatra package, versions >=1.2.0.c, <4.1.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-SINATRA-6483832
  • published31 Oct 2024
  • disclosed26 Mar 2024
  • creditt0rchwo0d

Introduced: 26 Mar 2024

CVE-2024-21510  (opens in a new tab)
CWE-807  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade sinatra to version 4.1.0 or higher.

Overview

Affected versions of this package 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.

CVSS Scores

version 4.0
version 3.1