vendor:
GNS3
by:
Hacker Fantastic
7,2
CVSS
HIGH
Local Privilege Escalation
264
CWE
Product Name: GNS3
Affected Version From: GNS-3 version 1.5.2
Affected Version To: GNS-3 version 1.5.2
Patch Exists: YES
Related CWE: N/A
CPE: a:gns3:gns3
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Mac OS-X
2020
GNS-3 Mac OS-X LPE local root exploit
GNS-3 on OS-X bundles the "ubridge" binary as a setuid root file. This file can be used to read arbitary files using "-f" arguement but also as it runs as root can also write arbitrary files with "pcap_file" arguement within configuration ini file. It is possible to abuse this utility to also write arbitary contents by bridging a UDP tunnel and writing to disk. We can exploit these mishaps to gain root privileges on a host that has GNS-3 installed by writing a malicious crontab entry and escalating privileges. This exploit takes advantage of this flaw to overwrite root crontab with our own entry and to spawn a root shell.
Mitigation:
Ensure that the GNS-3 application is up to date and that all security patches are applied.