AWS - RDS Unauthenticated Enum

支持 HackTricks

RDS

更多信息请查看:

AWS - Relational Database (RDS) Enum

公共端口

可以从互联网公开访问数据库。攻击者仍然需要知道用户名和密码、IAM 访问权限或漏洞才能进入数据库。

公共 RDS 快照

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

Public URL template

公共 URL 模板

mysql://{user_provided}.{random_id}.{region}.rds.amazonaws.com:3306
postgres://{user_provided}.{random_id}.{region}.rds.amazonaws.com:5432
支持 HackTricks

Last updated