Rapid7 Vulnerability & Exploit Database

MongoDB NoSQL Collection Enumeration Via Injection

Back to Search

MongoDB NoSQL Collection Enumeration Via Injection

Disclosed
06/07/2014
Created
05/30/2018

Description

This module can exploit NoSQL injections on MongoDB versions less than 2.4 and enumerate the collections available in the data via boolean injections.

Author(s)

  • Brandon Perry <bperry.volatile@gmail.com>

Platform

Linux,Windows

Development

References

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/gather/mongodb_js_inject_collection_enum
msf auxiliary(mongodb_js_inject_collection_enum) > show actions
    ...actions...
msf auxiliary(mongodb_js_inject_collection_enum) > set ACTION < action-name >
msf auxiliary(mongodb_js_inject_collection_enum) > show options
    ...show and set options...
msf auxiliary(mongodb_js_inject_collection_enum) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;