mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2025-12-29 06:03:26 -08:00
1.7 KiB
1.7 KiB
AWS - RDS 認証なし列挙
{{#include ../../../banners/hacktricks-training.md}}
RDS
詳細については、次を確認してください:
{{#ref}} ../aws-services/aws-relational-database-rds-enum.md {{#endref}}
公開ポート
インターネットからデータベースへの公開アクセスを提供することが可能です。攻撃者は依然としてユーザー名とパスワード、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
公開URLテンプレート
mysql://{user_provided}.{random_id}.{region}.rds.amazonaws.com:3306
postgres://{user_provided}.{random_id}.{region}.rds.amazonaws.com:5432
{{#include ../../../banners/hacktricks-training.md}}