31 lines
872 B
YAML
31 lines
872 B
YAML
id: mongodb-unauth
|
|
|
|
info:
|
|
name: MongoDB - Unauthenticated Access
|
|
author: pdteam
|
|
severity: high
|
|
description: MongoDB was able to be accessed with no password. Note that MongoDB does not require a password by default.
|
|
reference:
|
|
- https://github.com/orleven/Tentacle
|
|
- https://book.hacktricks.xyz/pentesting/27017-27018-mongodb
|
|
- https://www.mongodb.com/features/mongodb-authentication
|
|
remediation: Enable Authentication in MongoDB
|
|
metadata:
|
|
max-request: 1
|
|
tags: network,mongodb,unauth,misconfig
|
|
|
|
tcp:
|
|
- inputs:
|
|
- data: 480000000200000000000000d40700000000000061646d696e2e24636d6400000000000100000021000000026765744c6f670010000000737461727475705761726e696e67730000
|
|
type: hex
|
|
|
|
host:
|
|
- "{{Hostname}}"
|
|
port: 27017
|
|
|
|
read-size: 2048
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "totalLinesWritten"
|