You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the mongodb-info script against a bunch of MongoDB services on a client network I get the following error from every machine:
NSE: [mongodb-info 184.108.40.206:27017] Bson-ERR:Getter for 17 not implemented
NSE: mongodb-info against 220.127.116.11:27017 threw an error!
/usr/bin/../share/nmap/nselib/mongodb.lua:244: table index is nil
/usr/bin/../share/nmap/nselib/mongodb.lua:244: in upvalue '_elements_to_dict'
/usr/bin/../share/nmap/nselib/mongodb.lua:290: in function 'mongodb.fromBson'
/usr/bin/../share/nmap/nselib/mongodb.lua:586: in function 'mongodb.query'
/usr/bin/../share/nmap/scripts/mongodb-info.nse:104: in function </usr/bin/../share/nmap/scripts/mongodb-info.nse:70>
Looks like we don't have a fully-functional BSON parser, since it can't handle type 17 (timestamp), and the failure mode is to simply crash. I'll put in a quick fix to avoid crashing, but it might not result in usable output from the scripts until we get parsers for the other types implemented.
The fix was made only after the latest version (7.92) was released, so make sure that you are running the latest code from the SVN or GitHub. If you do, yet you are still experiencing the problem, then you should open a new issue.