CVE-2024-28866
GoCD Server vulnerability analysis and mitigation

Overview

GoCD versions from 19.4.0 to 23.5.0 (inclusive) are potentially vulnerable to a reflected cross-site scripting vulnerability (CVE-2024-28866) on the loading page displayed while GoCD is starting. The vulnerability was discovered in May 2024 and affects the GoCD continuous delivery server (GitHub Advisory).

Technical details

The vulnerability exists due to inadequate validation of a redirect_to query parameter on the loading page that is displayed during server startup. This reflected XSS vulnerability could allow attackers to craft malicious links that, when opened by users during the server startup period, could potentially execute arbitrary JavaScript code in the user's browser (GitHub Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 3.1 (LOW) with vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N (NVD).

Impact

The vulnerability could theoretically allow attackers to steal session tokens or other values from the user's browser. However, the practical impact is limited because any stolen session tokens would be invalidated once the server completes its restart, as GoCD does not support persistent sessions. Additionally, any executed XSS would occur within a logged-out context (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in GoCD version 24.1.0. For earlier versions, it is possible to work around the issue by overriding the loading page with an earlier non-vulnerable version using Java system property overrides: either -Dloading.page.resource.path=/loading_pages/default.loading.page.html for a simpler loading page, or -Dloading.page.resource.path=/does_not_exist.html to display a basic message without interactivity (GitHub Advisory).

Community reactions

The vulnerability was responsibly disclosed by Aviv Keller (RedYetiDev). The GoCD team acknowledged this as a theoretical vulnerability that has not shown to be practically exploitable (GoCD Release Notes).

Additional resources


SourceThis report was generated using AI

Related GoCD Server vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-56320CRITICAL9.4
  • GoCD Server logoGoCD Server
  • cpe:2.3:a:thoughtworks:gocd
NoYesJan 03, 2025
CVE-2024-28866MEDIUM6.1
  • GoCD Server logoGoCD Server
  • cpe:2.3:a:thoughtworks:gocd
NoYesMay 14, 2024
CVE-2024-56321LOW3.8
  • GoCD Server logoGoCD Server
  • cpe:2.3:a:thoughtworks:gocd
NoYesJan 03, 2025
CVE-2024-56324LOW2.1
  • GoCD Server logoGoCD Server
  • cpe:2.3:a:thoughtworks:gocd
NoYesJan 03, 2025
CVE-2024-56322LOW2.1
  • GoCD Server logoGoCD Server
  • cpe:2.3:a:thoughtworks:gocd
NoYesJan 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management