Red-Teaming Cloud Infrastructure with Neo#291
Open
carlospolop wants to merge 1 commit into
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://projectdiscovery.io/blog/red-teaming-cloud-infrastructure-with-neo Content Categories: Based on the analysis, this content was categorized under "Pentesting CI/CD -> TeamCity Security; also cross-reference AWS Pentesting -> AWS - EC2, EBS, SSM & VPC Post Exploitation / IMDS credential theft". 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
The post describes a full autonomous red-team exercise performed by ProjectDiscovery Neo against an AWS lab modeled after common real-world CI/CD cloud exposure. The starting point was a public JetBrains TeamCity server on
ci.[REDACTED].org:8111. From a single high-level prompt, with no step-by-step exploit hints, Neo moved from external reconnaissance to TeamCity administrative access, CI/CD secret theft, AWS instance metadata credential theft, S3 and SSM enumeration, pri...🔧 Technical Details
TeamCity CVE-2024-27198 authentication bypass: Vulnerable TeamCity versions can route unauthenticated requests through
/hax?jsp=/app/rest/<endpoint>;.jsp, causing protected REST endpoints to be treated as authenticated. This can be used first for unauthenticated fingerprinting withGET /hax?jsp=/app/rest/server;.jsp, then for privilege escalation by creating a persistent API token for a privileged user, for examplePOST /hax?jsp=/app/rest/users/id:1/tokens/RedTeamToken;.jsp. The practical impact is unauthenticated persistent administrator access to the CI/CD platform.CI/CD compromise as secret exfiltration: Administrative access to a CI/CD server is often equivalent to access to production deployment secrets. Build parameters and project configurations may contain database URLs, SSH private keys, JWT signing secrets, SaaS API keys, and cloud credentials because pipelines need them at runtime. A request such as
/...🤖 Agent ActionsDone: updated
src/pentesting-ci-cd/pentesting-ci-cd-methodology.md.Added a concise TeamCity-focused section covering:
CVE-2024-27198unauthenticated REST abuseS3,SSM,EC2,RDS)Also updated the file’s
## Referenceswith:Validation:
git diff --checkpassedmdbook buildcould not be run becausemdbookis not installed in this environment.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.