Loot an exposed RDS instance:
Scan port
p3306,5432,1433,1521
blasting
Hijack public RDS snapshots:
Discover public snapshots:
Using AWS CLI commands
aws rds describe-db-snapshotsandaws rds describe-db-cluster-snapshotsFind public RDS snapshots.
pass
-snapshot-type public --include-publicParameters filter out public snapshots.
Restore public snapshot:
Access the restored database:
Obtain sensitive information:
defensive measures
Avoid public snapshots:
Monitoring and Alerting:
Permission management:
Hijack public EBS snapshots
Discover public snapshots:
Verify the publicity of a snapshot:
Create an EC2 instance and mount a public snapshot:
Access mounted volumes:
Obtain sensitive information:
defensive measures
Avoid public snapshots:
Monitoring and Alerting:
Permission management:
Obtain AWS credentials and obtain S3 data after directory traversal
port scan:
Website analysis:
Directory traversal vulnerability:
Get AWS credentials:
Access AWS S3 bucket:
aksk leaked in git repository
Clone repository:
Scan for sensitive information:
Get AWS credentials:
Access AWS S3 bucket:
Get database connection information:
Historical warehouse submissions can scan a lot of information, and even black box source code leaks
Access confidential information with S3 Bucket version control
Access target IP:
View bucket version:
Get old version files:
Extract sensitive information:
Access sensitive files:
Brute force cracking of S3 buckets
Discover S3 bucket:
Fuzzing other buckets:
Get SSM parameters:
Revealing the secrets in CodeCommit and Docker
Image scanning and credential discovery
Target: Review Huge Logistics' public code repository for credentials or sensitive information that may have been overlooked.
tool: use
docker scoutTools to analyze Docker images.
step:
2. Leverage credentials to access AWS resources
Target: Leverage discovered credentials to access AWS resources for lateral and vertical movement.
tool: use
aws-enumeratorTool enumerates AWS permissions.
step:
3. Access S3 bucket
Target: Leverage new AWS credentials to access S3 bucket and obtain sensitive information.
tool: Access an S3 bucket using the AWS CLI.
step:
For more details please refer to:Uncover Secrets in CodeCommit and Docker,b | tari Blog
SSRF to Pwned
A brief description of the attack idea
1. Initial information collection
Target: Assess the security of the Huge Logistics website and investigate potential risks to its cloud infrastructure.
tool: use
whoisTool to view IP information.
step:
2. Discovering public S3 buckets
Target: Find and access Huge Logistics' public S3 buckets.
tool: Use the AWS CLI.
step:
3. Exploiting SSRF vulnerability to access metadata
Target: Exploiting a Server Side Request Forgery (SSRF) vulnerability to access AWS metadata.
tool: Modify website request parameters.
step:
4. Obtain sensitive information
Target: Download and view sensitive files in the bucket.
tool: Use the AWS CLI.
step:
Comments (0)
Login to post a comment.