CVE-2021-43287
published 2022-04-14CVE-2021-43287: An issue was discovered in ThoughtWorks GoCD before 21.3.0. The business continuity add-on, which is enabled by default, leaks all secrets known to the GoCD…
PriorityP181high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
ITWEXPLOITVulnCheck KEVInitial access
Exploited in the wild
EPSS
26.91%
97.8th percentile
An issue was discovered in ThoughtWorks GoCD before 21.3.0. The business continuity add-on, which is enabled by default, leaks all secrets known to the GoCD server to unauthenticated attackers.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| thoughtworks | gocd | < 21.3.0 | 21.3.0 |
Detection & IOCsextracted from sources · hover to see the quote
path/cruise_config
snort
alert http any any -> [$HOME_NET,$HTTP_SERVERS] any (msg:"ET INFO Possible GoCD Authentication Bypass URI Path - cruise_config (SET)"; flow:established,to_server; flowbits:set,ET.gocd.auth; flowbits:noalert; http.method; content:"GET"; http.uri; content:"/cruise_config"; nocase; fast_pattern; reference:url,blog.sonarsource.com/gocd-pre-auth-pipeline-takeover; reference:url,attackerkb.com/topics/ShpnUFlqDz/pre-auth-takeover-of-build-pipelines-in-gocd-cve-2021-43287/rapid7-analysis; classtype:not-suspicious; sid:2034332; rev:4; metadata:created_at 2021_11_02, deployment Perimeter, deployment Internal, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_06_23, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application; target:dest_ip;)
snort
alert http [$HOME_NET,$HTTP_SERVERS] any -> any any (msg:"ET EXPLOIT GoCD Authentication Bypass Successful Leak"; flow:established,to_client; flowbits:isset,ET.gocd.auth; http.stat_code; content:"200"; file.data; content:"agentAutoRegisterKey="; nocase; fast_pattern; content:"webhookSecret="; nocase; content:" tokenGenerationKey="; nocase; reference:url,blog.sonarsource.com/gocd-pre-auth-pipeline-takeover; reference:url,attackerkb.com/topics/ShpnUFlqDz/pre-auth-takeover-of-build-pipelines-in-gocd-cve-2021-43287/rapid7-analysis; classtype:attempted-admin; sid:2034333; rev:3; metadata:created_at 2021_11_02, deployment Perimeter, deployment Internal, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_03_14, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application; target:dest_ip;)
- →Nuclei template matches HTTP 200 response with regex 'root:.*:0:0:' indicating successful path traversal via the business-continuity plugin endpoint
- →Successful exploitation leaks GoCD secrets identifiable by response body containing the strings 'agentAutoRegisterKey=', 'webhookSecret=', and 'tokenGenerationKey='
- →Shodan queries can identify exposed GoCD instances: search for http.title 'Create a pipeline - Go' combined with html 'GoCD Version'
- →FOFA queries can identify exposed GoCD instances via title and body content
- →The attack uses path traversal via the 'pluginName' parameter of the business-continuity add-on API, which is enabled by default and requires no authentication
- →Snort/Suricata flowbit ET.gocd.auth is set on GET requests to /cruise_config URI path; a subsequent 200 response containing secret key strings confirms successful exploitation (sid:2034332 + sid:2034333)
- ·The vulnerable business-continuity add-on is enabled by default in GoCD versions before 21.3.0; no authentication is required to reach the affected endpoint ↗
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
vulncheck7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-4x25-wq2v-85f9: An issue was discovered in ThoughtWorks GoCD before 21
ghsa_unreviewed·2022-04-15
CVE-2021-43287 [HIGH] CWE-200 GHSA-4x25-wq2v-85f9: An issue was discovered in ThoughtWorks GoCD before 21
An issue was discovered in ThoughtWorks GoCD before 21.3.0. The business continuity add-on, which is enabled by default, leaks all secrets known to the GoCD server to unauthenticated attackers.
VulnCheck
thoughtworks gocd Exposure of Sensitive Information to an Unauthorized Actor
vulncheck·2021·CVSS 7.5
CVE-2021-43287 [HIGH] thoughtworks gocd Exposure of Sensitive Information to an Unauthorized Actor
thoughtworks gocd Exposure of Sensitive Information to an Unauthorized Actor
An issue was discovered in ThoughtWorks GoCD before 21.3.0. The business continuity add-on, which is enabled by default, leaks all secrets known to the GoCD server to unauthenticated attackers.
Affected: thoughtworks gocd
Required Action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Exploitation References: https://unit42.paloaltonetworks.com/network-security-trends-nov-jan/; https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-13&host_type=src&vulnerability=cve-2021-43287; https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-14&host_type=src&vulnerabil
Suricata
ET INFO Possible GoCD Authentication Bypass URI Path - cruise_config (SET)
suricata·2021-11-02
CVE-2021-43287 ET INFO Possible GoCD Authentication Bypass URI Path - cruise_config (SET)
ET INFO Possible GoCD Authentication Bypass URI Path - cruise_config (SET)
Rule: alert http any any -> [$HOME_NET,$HTTP_SERVERS] any (msg:"ET INFO Possible GoCD Authentication Bypass URI Path - cruise_config (SET)"; flow:established,to_server; flowbits:set,ET.gocd.auth; flowbits:noalert; http.method; content:"GET"; http.uri; content:"/cruise_config"; nocase; fast_pattern; reference:url,blog.sonarsource.com/gocd-pre-auth-pipeline-takeover; reference:url,attackerkb.com/topics/ShpnUFlqDz/pre-auth-takeover-of-build-pipelines-in-gocd-cve-2021-43287/rapid7-analysis; classtype:not-suspicious; sid:2034332; rev:4; metadata:created_at 2021_11_02, deployment Perimeter, deployment Internal, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_06_23
Suricata
ET EXPLOIT GoCD Authentication Bypass Successful Leak
suricata·2021-11-02
CVE-2021-43287 ET EXPLOIT GoCD Authentication Bypass Successful Leak
ET EXPLOIT GoCD Authentication Bypass Successful Leak
Rule: alert http [$HOME_NET,$HTTP_SERVERS] any -> any any (msg:"ET EXPLOIT GoCD Authentication Bypass Successful Leak"; flow:established,to_client; flowbits:isset,ET.gocd.auth; http.stat_code; content:"200"; file.data; content:"agentAutoRegisterKey="; nocase; fast_pattern; content:"webhookSecret="; nocase; content:" tokenGenerationKey="; nocase; reference:url,blog.sonarsource.com/gocd-pre-auth-pipeline-takeover; reference:url,attackerkb.com/topics/ShpnUFlqDz/pre-auth-takeover-of-build-pipelines-in-gocd-cve-2021-43287/rapid7-analysis; classtype:attempted-admin; sid:2034333; rev:3; metadata:created_at 2021_11_02, deployment Perimeter, deployment Internal, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_
Nuclei
Pre-Auth Takeover of Build Pipelines in GoCD
nuclei·CVSS 7.5
CVE-2021-43287 [HIGH] Pre-Auth Takeover of Build Pipelines in GoCD
Pre-Auth Takeover of Build Pipelines in GoCD
GoCD contains a critical information disclosure vulnerability whose exploitation allows unauthenticated attackers to leak configuration information including build secrets and encryption keys.
Template:
id: CVE-2021-43287
info:
name: Pre-Auth Takeover of Build Pipelines in GoCD
author: dhiyaneshDk
severity: high
description: GoCD contains a critical information disclosure vulnerability whose exploitation allows unauthenticated attackers to leak configuration information including build secrets and encryption keys.
impact: |
Successful exploitation of this vulnerability can lead to unauthorized access and control over the build pipelines, potentially resulting in the execution of arbitrary code or unauthorized modifications.
remediation: Upgr
Unit42
Network Security Trends: November 2022-January 2023
blogs_unit42·2023-05-02·CVSS 9.8
CVE-2021-22005 [CRITICAL] Network Security Trends: November 2022-January 2023
Threat Research Center
Trend Reports
Vulnerabilities
## Network Security Trends: November 2022-January 2023
Yiheng An
Published: May 2, 2023
Trend Reports
Vulnerabilities
Attack analysis
CVE-2021-22005
CVE-2021-31602
CVE-2021-33035
CVE-2021-43287
CVE-2022-1118
CVE-2022-27924
CVE-2022-30136
CVE-2022-31137
CVE-2022-44877
CVE-2022-46169
Exploit in the wild
Network security trends
## Executive Summary
Recent observations of exploits used in the wild November 2022-January 2023 reveal that attackers have been using newly published remote code execution vulnerabilities in the following three products:
Roxy-WI, a web interface for managing and monitoring RoxyDNS
CWP, a free web hosting control panel (aka Control Web Panel or CentOS Web Panel)
Cacti, an open-source netw
Unit42
Network Security Trends: November 2022-January 2023
blogs_unit42·2023-05-02
Network Security Trends: November 2022-January 2023
## Executive Summary
Recent observations of exploits used in the wild November 2022-January 2023 reveal that attackers have been using newly published remote code execution vulnerabilities in the following three products:
- Roxy-WI, a web interface for managing and monitoring RoxyDNS
- CWP, a free web hosting control panel (aka Control Web Panel or CentOS Web Panel)
- Cacti, an open-source network monitoring and graphing tool used to track the performance of various network devices, servers and applications
Additionally, attackers have also been taking advantage of a traversal and information disclosure vulnerability in ThoughtWorks GoCD to read sensitive files stored on servers.
In our observations of network security trends, Unit 42 researchers have pinpointed several attacks based o
https://blog.sonarsource.com/gocd-pre-auth-pipeline-takeoverhttps://github.com/gocd/gocd/commit/41abc210ac4e8cfa184483c9ff1c0cc04fb3511chttps://www.gocd.org/releases/#21-3-0https://blog.sonarsource.com/gocd-pre-auth-pipeline-takeoverhttps://github.com/gocd/gocd/commit/41abc210ac4e8cfa184483c9ff1c0cc04fb3511chttps://www.gocd.org/releases/#21-3-0
2022-04-14
Published
Exploited in the wild