Vulnerabilities > CVE-2015-1336 - Improper Access Control vulnerability in Man-Db Project Man-Db

047910
CVSS 7.2 - HIGH
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
local
low complexity
man-db-project
canonical
debian
CWE-284
nessus
exploit available

Summary

The daily mandb cleanup job in Man-db before 2.7.6.1-1 as packaged in Ubuntu and Debian allows local users with access to the man account to gain privileges via vectors involving insecure chown use.

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Embedding Scripts within Scripts
    An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute scripts. The attacker leverages this capability to execute scripts to execute his/her own script by embedding it within other scripts that the target software is likely to execute. The attacker must have the ability to inject script into script that is likely to be executed. If this is done, then the attacker can potentially launch a variety of probes and attacks against the web server's local environment, in many cases the so-called DMZ, back end resources the web server can communicate with, and other hosts. With the proliferation of intermediaries, such as Web App Firewalls, network devices, and even printers having JVMs and Web servers, there are many locales where an attacker can inject malicious scripts. Since this attack pattern defines scripts within scripts, there are likely privileges to execute said attack on the host. Of course, these attacks are not solely limited to the server side, client side scripts like Ajax and client side JavaScript can contain malicious scripts as well. In general all that is required is for there to be sufficient privileges to execute a script, but not protected against writing.
  • Signature Spoofing by Key Theft
    An attacker obtains an authoritative or reputable signer's private signature key by theft and then uses this key to forge signatures from the original signer to mislead a victim into performing actions that benefit the attacker.

Exploit-Db

descriptionMan-db 2.6.7.1 - Privilege Escalation (PoC). CVE-2015-1336. Local exploit for Linux platform
idEDB-ID:41158
last seen2017-01-26
modified2015-12-02
published2015-12-02
reporterExploit-DB
sourcehttps://www.exploit-db.com/download/41158/
titleMan-db 2.6.7.1 - Privilege Escalation (PoC)

Nessus

NASL familyGentoo Local Security Checks
NASL idGENTOO_GLSA-201707-12.NASL
descriptionThe remote host is affected by the vulnerability described in GLSA-201707-12 (MAN DB: Privilege escalation) The /var/cache/man directory as part of the MAN DB package has group permissions set to root. Impact : A local user who does not belong to the root group, but has the ability to modify the /var/cache/man directory can escalate privileges to the group root. Workaround : There is no known workaround at this time.
last seen2020-06-01
modified2020-06-02
plugin id101343
published2017-07-10
reporterThis script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/101343
titleGLSA-201707-12 : MAN DB: Privilege escalation

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/140759/mandb-escalate.txt
idPACKETSTORM:140759
last seen2017-01-27
published2017-01-27
reporterhalfdog
sourcehttps://packetstormsecurity.com/files/140759/Man-db-2.6.7.1-Privilege-Escalation.html
titleMan-db 2.6.7.1 Privilege Escalation