AWS - RDS Unauthenticated Enum

ゼロからヒーローまでAWSハッキングを学ぶ htARTE(HackTricks AWS Red Team Expert)

HackTricksをサポートする他の方法:

RDS

詳細については、以下をチェックしてください:

pageAWS - Relational Database (RDS) Enum

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
ゼロからヒーローまでAWSハッキングを学ぶ htARTE(HackTricks AWS Red Team Expert)

HackTricksをサポートする他の方法:

最終更新