AWS - DocumentDB Enum

支持 HackTricks

DocumentDB

亚马逊 DocumentDB 提供与 MongoDB 的兼容性,被呈现为一个 快速、可靠且完全托管的数据库服务。旨在简化部署、操作和可扩展性,它允许 在云中无缝迁移和操作与 MongoDB 兼容的数据库。用户可以利用此服务执行现有的应用程序代码,并使用熟悉的驱动程序和工具,确保平稳过渡和操作,类似于使用 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 注入

由于 DocumentDB 是一个与 MongoDB 兼容的数据库,您可以想象它也容易受到常见的 NoSQL 注入攻击:

DocumentDB

AWS - DocumentDB Unauthenticated Enum

参考文献

支持 HackTricks

Last updated