CVE-2016-5425
HIGHApache Tomcat on RedHat Based Systems Insecure Temp Config Privilege Escalation
Title source: metasploitExploitation Summary
EIP tracks 2 public exploits for CVE-2016-5425.
PoCs published by Dawid Golunski, h00die, Dawid Golunski <[email protected]>, including Metasploit module exploits/linux/local/tomcat_rhel_based_temp_priv_esc.
AI-analyzed exploit summary This exploit leverages insecure permissions on the tomcat.conf file in RedHat-based distributions to inject malicious configurations, creating a root shell and reverse shell via systemd-tmpfiles execution.
Description
The Tomcat package on Red Hat Enterprise Linux (RHEL) 7, Fedora, CentOS, Oracle Linux, and possibly other Linux distributions uses weak permissions for /usr/lib/tmpfiles.d/tomcat.conf, which allows local users to gain root privileges by leveraging membership in the tomcat group.
Exploits (2)
This exploit leverages insecure permissions on the tomcat.conf file in RedHat-based distributions to inject malicious configurations, creating a root shell and reverse shell via systemd-tmpfiles execution.
This Metasploit module exploits CVE-2016-5425, a privilege escalation vulnerability in Apache Tomcat on RedHat-based systems due to improper file permissions on /usr/lib/tmpfiles.d/tomcat.conf. It injects a cron job via systemd-tmpfiles to execute a payload with root privileges.
References (10)
Scores
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H