AWS - RDS Unauthenticated Enum

Naučite hakovanje AWS-a od nule do heroja sa htARTE (HackTricks AWS Red Team Expert)!

Drugi načini podrške HackTricks-u:

RDS

Za više informacija pogledajte:

AWS - Relational Database (RDS) Enum

Javni Port

Moguće je omogućiti javni pristup bazi podataka sa interneta. Napadač će i dalje morati znati korisničko ime i lozinku, IAM pristup, ili eksploatisati kako bi ušao u bazu podataka.

Javni RDS Snimci

AWS omogućava davanje pristupa bilo kome za preuzimanje RDS snimaka. Možete veoma lako da izlistate ove javne RDS snimke iz vašeg sopstvenog naloga:

# Public RDS snapshots
aws rds describe-db-snapshots --include-public

## Search by account ID
aws rds describe-db-snapshots --include-public --query 'DBSnapshots[?contains(DBSnapshotIdentifier, `284546856933:`) == `true`]'
## To share a RDS snapshot with everybody the RDS DB cannot be encrypted (so the snapshot won't be encryted)
## To share a RDS encrypted snapshot you need to share the KMS key also with the account


# From the own account you can check if there is any public snapshot with:
aws rds describe-db-snapshots --snapshot-type public [--region us-west-2]
## Even if in the console appear as there are public snapshot it might be public
## snapshots from other accounts used by the current account

Šablon javnog URL-a

mysql://{user_provided}.{random_id}.{region}.rds.amazonaws.com:3306
postgres://{user_provided}.{random_id}.{region}.rds.amazonaws.com:5432
Naučite hakovanje AWS-a od nule do heroja sa htARTE (HackTricks AWS Red Team Expert)!

Drugi načini podrške HackTricks-u:

Last updated