30 lines
1.0 KiB
YAML
30 lines
1.0 KiB
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.
|
|
remediation: Enable Authentication in MongoDB
|
|
reference:
|
|
- https://github.com/orleven/Tentacle
|
|
- https://book.hacktricks.xyz/pentesting/27017-27018-mongodb
|
|
- https://www.mongodb.com/features/mongodb-authentication
|
|
metadata:
|
|
max-request: 1
|
|
tags: network,mongodb,unauth,misconfig,tcp
|
|
tcp:
|
|
- inputs:
|
|
- data: 480000000200000000000000d40700000000000061646d696e2e24636d6400000000000100000021000000026765744c6f670010000000737461727475705761726e696e67730000
|
|
type: hex
|
|
|
|
host:
|
|
- "{{Hostname}}"
|
|
port: 27017
|
|
|
|
read-size: 2048
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "totalLinesWritten"
|
|
# digest: 490a00463044022070ba7a5c94925599403fff164b34682a54409f8f90285a9d8016c084f14ce5150220425a8c91f823401eb2928f9edb94bfba877cd3e28ea874c9332d5a6b18a5e79d:922c64590222798bb761d5b6d8e72950 |