AWS - DocumentDB Enum

Support HackTricks

DocumentDB

Amazon DocumentDB, che offre compatibilità con MongoDB, è presentato come un servizio di database veloce, affidabile e completamente gestito. Progettato per la semplicità nel deployment, nell'operazione e nella scalabilità, consente la migrazione e l'operazione senza soluzione di continuità di database compatibili con MongoDB nel cloud. Gli utenti possono sfruttare questo servizio per eseguire il loro codice applicativo esistente e utilizzare driver e strumenti familiari, garantendo una transizione e un'operazione fluida simile a quella di lavorare con MongoDB.

Enumeration

aws docdb describe-db-clusters # Get username from "MasterUsername", get also the endpoint from "Endpoint"
aws docdb describe-db-instances #Get hostnames from here

# Parameter groups
aws docdb describe-db-cluster-parameter-groups
aws docdb describe-db-cluster-parameters --db-cluster-parameter-group-name <param_group_name>

# Snapshots
aws docdb describe-db-cluster-snapshots
aws --region us-east-1 --profile ad docdb describe-db-cluster-snapshot-attributes --db-cluster-snapshot-identifier <snap_id>

NoSQL Injection

Poiché DocumentDB è un database compatibile con MongoDB, puoi immaginare che sia anche vulnerabile a comuni attacchi di NoSQL injection:

DocumentDB

AWS - DocumentDB Unauthenticated Enum

Riferimenti

Supporta HackTricks

Last updated