AWS - RDS Unauthenticated Enum

Support HackTricks

RDS

Для отримання додаткової інформації перегляньте:

Public Port

Можливо надати публічний доступ до бази даних з інтернету. Зловмисник все ще повинен знати ім'я користувача та пароль, доступ IAM або експлойт, щоб увійти в базу даних.

Public RDS Snapshots

AWS дозволяє надавати доступ будь-кому для завантаження знімків RDS. Ви можете дуже легко перерахувати ці публічні знімки RDS зі свого облікового запису:

# 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

Шаблон публічного URL

mysql://{user_provided}.{random_id}.{region}.rds.amazonaws.com:3306
postgres://{user_provided}.{random_id}.{region}.rds.amazonaws.com:5432
Підтримати HackTricks

Last updated