vendor:
Vivid 1504
by:
halfdog
7,2
CVSS
HIGH
Privilege Escalation
264
CWE
Product Name: Vivid 1504
Affected Version From: Ubuntu Vivid 1504
Affected Version To: Ubuntu Vivid 1504
Patch Exists: YES
Related CWE: N/A
CPE: o:ubuntu:vivid:1504
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Linux
2015
Upstart Logrotation Privilege Escalation
Ubuntu Vivid 1504 (development branch) installs an insecure upstart logrotation script which will read user-supplied data from /run/user/[uid]/upstart/sessions and pass then unsanitized to an env command. As user run directory is user-writable, the user may inject arbitrary commands into the logrotation script, which will be executed during daily cron job execution around midnight with root privileges.
Mitigation:
The vulnerability can be mitigated by ensuring that the logrotation script performs input sanitation.