The Vigil@nce team watches public vulnerabilities impacting your computers, and then offers security solutions, a vigilance database and tools to fix them.

Vulnerability of MongoDB: information disclosure via dbshell

Synthesis of the vulnerability 

A local attacker can read the ~/.dbshell file of a MongoDB user, in order to obtain sensitive information.
Vulnerable software: Debian, Fedora, MongoDB Server.
Severity of this announce: 1/4.
Creation date: 01/08/2016.
Références of this computer vulnerability: 25335, CVE-2016-6494, DLA-588-1, DLA-588-2, FEDORA-2016-4cedbd4308, FEDORA-2016-89060100d7, SEC0019, VIGILANCE-VUL-20263.

Description of the vulnerability 

The MongoDB product logs commands in the ~/.dbshell file.

However, this file is created world readable.

A local attacker can therefore read the ~/.dbshell file of a MongoDB user, in order to obtain sensitive information.
Full bulletin, software filtering, emails, fixes, ... (Request your free trial)

This vulnerability impacts software or systems such as Debian, Fedora, MongoDB Server.

Our Vigil@nce team determined that the severity of this security announce is low.

The trust level is of type confirmed by the editor, with an origin of user shell.

A proof of concept or an attack tool is available, so your teams have to process this alert. An attacker with a technician ability can exploit this computer vulnerability note.

Solutions for this threat 

MongoDB: workaround for dbshell.
A workaround is to use a secure umask set at 0077.

Commvault: solution for MongoDB.
The solution is indicated in information sources.

Debian 7: new mongodb packages.
New packages are available:
  Debian 7: mongodb 2.0.6-1.1+deb7u1

Fedora: new mongodb packages.
New packages are available:
  Fedora 23: mongodb 3.0.12-2.fc23
  Fedora 24: mongodb 3.2.8-2.fc24
Full bulletin, software filtering, emails, fixes, ... (Request your free trial)

Computer vulnerabilities tracking service 

Vigil@nce provides a computers vulnerabilities note. Each administrator can customize the list of products for which he wants to receive vulnerability alerts.