Lucene search
K

MagniComp SysInfo Information Exposure

🗓️ 18 Jun 2018 00:00:00Reported by Harry SintonenType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 111 Views

MagniComp SysInfo CWE-215 Information Exposur

Related
Code
ReporterTitlePublishedViews
Family
0day.today
MagniComp SysInfo - mcsiwrapper Privilege Escalation Exploit
20 Feb 201800:00
zdt
Circl
CVE-2017-6516
20 Feb 201800:00
circl
CNVD
MagniComp Sysinfo Local Elevation of Privilege Vulnerability
15 Mar 201700:00
cnvd
CNVD
MagniComp SysInfo Information Disclosure Vulnerability
22 May 201800:00
cnvd
CVE
CVE-2017-6516
14 Mar 201717:00
cve
CVE
CVE-2018-7268
21 May 201815:00
cve
Cvelist
CVE-2017-6516
14 Mar 201717:00
cvelist
Cvelist
CVE-2018-7268
21 May 201815:00
cvelist
Exploit DB
MagniComp SysInfo - mcsiwrapper Privilege Escalation (Metasploit)
20 Feb 201800:00
exploitdb
EUVD
EUVD-2018-19004
7 Oct 202500:30
euvd
Rows per page
`MagniComp SysInfo Information Exposure [CVE-2018-7268]  
======================================================  
The latest version of this advisory is available at:  
https://sintonen.fi/advisories/magnicomp-sysinfo-information-exposure.txt  
  
  
Overview  
--------  
  
MagniComp SysInfo contains a information exposure vulnerability through debug  
functionality.  
  
  
Description  
-----------  
  
Due to a combination of setuid binary and verbose debugging, MagniComp SysInfo can be  
used to read any file on the system owned by root (uid 0).  
  
  
Impact  
------  
  
A local unprivileged user is able to read any root (uid 0) owned file on the system,  
regardless of the file permissions. Confidential information such as password hashes  
(/etc/shadow) or other secrets (such as log files, private keys) can be leaked to  
the attacker. The vulnerability has a confidentiality impact, but has no direct impact  
on system integrity or availability.  
  
  
Details  
-------  
  
The discovered vulnerabilities, described in more detail below, enable the attack  
described here in brief.  
  
1. A local attacker executes the following command to obtain access to /etc/shadow:  
$ /opt/sysinfo/bin/sysinfo --licensevalid /etc/shadow --debug 2>&1 | grep PARSE:  
2. The attacker performs further attacks on the exposed password hashes  
  
The attacker is able to use the vulnerability to expose other confidential  
information, too, such as private keys, configuration and log files.  
  
  
Vulnerabilities  
---------------  
  
1. CWE-215: Information Exposure Through Debug Information [CVE-2018-7268]  
  
The SysInfo mcsiwrapper is installed setuid root. The --licensevalid option reads  
the license file, parses it and returns validity status of the license. Due to an  
oversight enabling debug output with --debug also outputs the contents of the file to  
the stderr while performing the parsing, exposing the file contents in the process.  
  
The vulnerability can only be used to read files owned by root (uid 0). An attempt  
to read a file owned by someone else is met with the following error:  
  
"mcsiwrapper: CERROR: Option --licensefile is unsafe: "/home/user/foo" REASON: Path  
must be owned by uid 0 or uid 0 when running setuid: path owned by uid 1000."  
  
  
Vulnerable versions  
-------------------  
  
The following SysInfo versions are confirmed vulnerable:  
  
- Linux/Unix/Mac SysInfo versions up and including 10.0 (H80)  
  
Notably MagniComp SysInfo is bundled with the BMC BladeLogic Automation product. With  
BMC BladeLogic installations the tool can be found from the following location:  
/opt/bmc/bladelogic/RSCD/nativetool/bin  
  
  
Mitigation  
----------  
  
1. Upgrade to SysInfo 10-H81 or later  
  
  
Similar or prior work  
---------------------  
  
1. Unrelated earlier privilege escalation vulnerability CVE-2017-6516 -  
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-6516  
  
  
Credits  
-------  
  
The vulnerability was discovered by Harry Sintonen / F-Secure Corporation.  
  
  
Timeline  
--------  
  
2018.02.13 discovered the vulnerability  
2018.02.14 wrote a preliminary advisory  
2018.02.14 contacted MagniComp at [email protected] requesting security contact  
2018.02.14 sent vulnerability details to CERT-FI vulncoord  
2018.02.15 sent vulnerability details to MagniComp security contact  
2018.02.16 MagniComp acknowledged the vulnerability  
2018.02.20 requested CVE ID from MITRE  
2018.02.21 CVE-2018-7268 assigned by MITRE  
2018.02.22 MagniComp released SysInfo 10-H81 fixing the vulnerability. however,  
due to extensive OEM bundling the embargo is extended  
2018.05.18 public disclosure of the redacted advisory  
2018.06.18 full disclosure of the vulnerability details  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation