Local Privilege Escalation via qagent_uninstall.sh Qualys Cloud Agents
The Qualys Cloud Agent included a bundled uninstall script (qagent_uninstall.sh), specific to Mac and Linux supported versions that invoked multiple system commands without using absolute paths and without sanitizing the $PATH environment. If the uninstall script is executed with elevated privileges (e.g., via sudo) in an environment where $PATH has been manipulated, an attacker with root/sudo privileges could cause malicious executables to be run in place of the intended system binaries. This behavior can be leveraged for local privilege escalation and arbitrary command execution under elevated privileges.
Problem Types
| Type | CWE ID | Description |
|---|
| CWE | CWE-426 | CWE-426 Untrusted Search Path |
Type: CWE
Description: CWE-426 Untrusted Search Path
Metrics
| Version | Base score | Base severity | Vector |
|---|
| 3.1 | 6.3 | MEDIUM | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
Version: 3.1
Base score: 6.3
Base severity: MEDIUM
Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
Impacts
| CAPEC ID | Description |
|---|
| CAPEC-233 | CAPEC-233 Privilege Escalation |
Description: CAPEC-233 Privilege Escalation