id: unauthenticated-mongo-express

info:
  name: Mongo Express - Unauthenticated Access
  author: dhiyaneshDK,b0rn2r00t
  severity: high
  description: Mongo Express was able to be access with no authentication requirements in place.
  reference:
    - https://www.exploit-db.com/ghdb/5684
  metadata:
    verified: true
    max-request: 3
    shodan-query: title:"Home - Mongo Express"
  tags: mongo,unauth,edb,misconfig

http:
  - method: GET
    path:
      - '{{BaseURL}}'
      - '{{BaseURL}}/mongo-express/'
      - '{{BaseURL}}/db/admin/system.users'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<title>Home - Mongo Express</title>'
          - '<title>system.users - Mongo Express</title>'
        condition: or

      - type: status
        status:
          - 200

# digest: 4b0a00483046022100e283c5bbedab8b07d13294327dc2704640614f9b265ce975f37ee69ef16692fb022100f21bb9bb35c1cbafb9bbce1f5e34c779a9b7baaf19f36d7747188bf427235079:922c64590222798bb761d5b6d8e72950
