Critical Unauthenticated Remote Code Execution in CircleCI's... - #365
Open
carlospolop wants to merge 1 commit into
Open
Critical Unauthenticated Remote Code Execution in CircleCI's...#365carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://remedio.io/blog/the-critical-unauthenticated-rce-vulnerability-in-circlecis-mcp-server Content Categories: Based on the analysis, this content was categorized under "Pentesting CI/CD > CircleCI Security > CircleCI MCP Server Host/Origin Authentication Bypass to Pipeline RCE". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview
Remedio identified a critical unauthenticated remote code execution vulnerability in CircleCI's MCP server when it is operated as a shared, network-reachable service. In this deployment mode, one MCP instance may be used by an entire team or multiple AI agents and carries the organization's CircleCI API token to perform delegated actions. A remote attacker who can reach the service can bypass its
Host/Originrequest validation and invoke th...🔧 Technical Details
Bypassing access controls based on client-controlled HTTP headers
HTTP
HostandOriginvalues are request metadata, not caller authentication. If an application allows a missingOriginto support clients such ascurland simultaneously trusts an allowlisted value such asHost: localhost, a direct client can omitOriginand spoof the allowed host. Test these controls with absent, empty, whitespace-only, mixed-case, and attacker-selected header values. Missing identity signals should fail closed, and authentication must use credentials or cryptographic identities that the requester cannot simply choose.Spoofing loopback identity against wildcard-bound services
A process listening on
0.0.0.0accepts traffic through non-loopback interfaces even when the request claimsHost: localhost. The header describes the requested virtual host and ...🤖 Agent Actions
Updated
src/pentesting-ci-cd/circleci-security.mdwith:Host/missing-Originbypass testing commands.run_pipelineaccess-to-RCE chain.0.19.2remediation and configuration hardening.Validation passed with
git diff --checkand citation/reference checks.mdbookwas not installed, so the full build was skipped.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.
📚 Repository Maintenance
All .md files have been checked for proper formatting (headers, includes, etc.).