Skip to content

MongoDB HTTP Interface Enabled

ID: file-mongodb-http-interface-enabled

Severity: high

Author: pussycat0x

Tags: mongodb,config,file,hardening

Checks if the MongoDB HTTP interface is enabled in /etc/mongod.conf.

id: file-mongodb-http-interface-enabled
info:
name: MongoDB HTTP Interface Enabled
author: pussycat0x
severity: high
description: |
Checks if the MongoDB HTTP interface is enabled in /etc/mongod.conf.
remediation: |
Set 'http.enabled: false' in /etc/mongod.conf and restart MongoDB.
reference:
- https://wiki.devsecopsguides.com/docs/checklists/mongodb/
- https://www.mongodb.com/docs/manual/reference/configuration-options/
metadata:
verified: true
tags: mongodb,config,file,hardening
file:
- extensions:
- conf
matchers-condition: and
matchers:
- type: word
words:
- "storage"
- "operationProfiling"
condition: and
- type: word
words:
- "http:"
- "enabled: true"
condition: and
negative: true
# digest: 490a00463044022076c30bae9d912985b3cbbeb47999bb78be1524cd88c218adc904b07a648328d902206cab1e318dfdec50a47cccd2cd4ecd104207b7afca3db3386551187e5be49517:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "file/audit/mongodb/file-mongodb-http-interface-enabled.yaml"

View on Github