ManageIQ / ManageIQ/dbus_api_service

CVE-2024-21510 (Medium) detected in sinatra-2.2.4.gem

Open
#53 3 comments 0 reactions 0 assignees View on GitHub
Mend: dependency security vulnerability stale
Dominant language
Ruby
Stars
1
Forks
12
PR merge metrics
No merged PRs in 30d

Description

## CVE-2024-21510 - Medium Severity Vulnerability
Vulnerable Library - sinatra-2.2.4.gem

Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort.


Library home page: https://rubygems.org/gems/sinatra-2.2.4.gem


Path to dependency file: /Gemfile.lock


Path to vulnerable library: /home/wss-scanner/.gem/ruby/3.2.0/cache/sinatra-2.2.4.gem


Dependency Hierarchy:
- :x: **sinatra-2.2.4.gem** (Vulnerable Library)

Found in base branch: master



Vulnerability Details



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.

Publish Date: 2024-11-01

URL: CVE-2024-21510



CVSS 3 Score Details (5.4)

Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: Required
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: Low
- Integrity Impact: Low
- Availability Impact: None


For more information on CVSS3 Scores, click here.


Suggested Fix

Type: Upgrade version


Origin: https://github.com/advisories/GHSA-hxx2-7vcw-mqr3


Release Date: 2024-11-01


Fix Resolution: sinatra - 4.1.0

***
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)

Contributor guide

Open the contributing guide

Research direction

Start with /Gemfile.lock and the CVE-2024-21510 advisory for Sinatra 2.2.4. Upgrade Sinatra to the stated fixed version, 4.1.0, then verify the dependency scan no longer reports this vulnerability and check for compatibility issues.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.