mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2026-07-29 07:00:29 -07:00
1.5 KiB
1.5 KiB
AWS - RDS Unauthenticated Enum
{{#include ../../../banners/hacktricks-training.md}}
RDS
Kwa maelezo zaidi angalia:
{{#ref}} ../aws-services/aws-relational-database-rds-enum.md {{#endref}}
Public Port
Inawezekana kutoa ufikiaji wa umma kwa database kutoka kwenye mtandao. Mshambuliaji bado atahitaji kujua jina la mtumiaji na nenosiri, ufikiaji wa IAM, au exploit kuingia kwenye database.
Public RDS Snapshots
AWS inaruhusu kutoa ufikiaji kwa mtu yeyote kupakua RDS snapshots. Unaweza kuorodhesha hizi RDS snapshots za umma kwa urahisi kutoka kwa akaunti yako mwenyewe:
# 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
Kiolezo cha URL ya Umma
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}}