-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.4.9
-
Component/s: Security
-
None
-
Fully Compatible
-
ALL
-
MongoDB server 2.4.9 with auth=true in mongodb.conf. Admin user created as per manual. Authenticated users can connect fine. Attempting to connect with any username and either no passord or an incorrect password results in the following:
$ mongo <host> -u username
MongoDB shell version: 2.4.9
connecting to: <host>/test
Wed Mar 12 14:02:00.125 Error: 18
at src/mongo/shell/db.js:228
exception: login failed
However, omitting a username allows a shell connection with limited access:
$ mongo <host>
MongoDB shell version: 2.4.9
connecting to: <host>/test
> db.system.users.find()
error:
> db.version()
2.4.9
> db.adminCommand(
)
{ "errmsg" : "exception: forced error", "code" : 10038, "ok" : 0 }This could allow log clutter, server recon, and DoS depending on the architecture of the server.
- duplicates
-
SERVER-12143 Make some unauthenticated commands require auth
- Closed