CVE-2024-13177
Executive Summary
CVE-2024-13177 is a local privilege escalation vulnerability in the Netskope Client for macOS. The flaw resides in the postinstall script, which fails to validate the path of the file “nsinstallation”. A standard user can exploit this by creating a malicious symlink, causing the installer to execute arbitrary code with elevated privileges. This allows an attacker to gain root access on the affected system. The vulnerability affects Netskope Client versions before 123.0, before 117.1.11.2310, and before 120.1.10.2306. No public proof-of-concept (PoC) or exploit code is currently available, but the attack vector is well-understood and poses a significant risk to unpatched systems.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability is not related to a package manager (NPM, PyPI, Go, Ruby) but is a software installation flaw in a macOS application. The risk is primarily to end-user systems where the Netskope Client is deployed.
CVSS Breakdown & Threat Level
- CVSS Score: 0.0 (NVD) / Estimated: 7.8 (High)
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack Vector: Local (AV:L) – Requires local access to the system.
- Attack Complexity: Low (AC:L) – The attack is straightforward.
- Privileges Required: Low (PR:L) – A standard user account is sufficient.
- User Interaction: None (UI:N) – No user action is required beyond the initial exploitation.
- Scope: Unchanged (S:U) – The vulnerability does not cross security boundaries.
- Confidentiality Impact: High (C:H) – Full system compromise.
- Integrity Impact: High (I:H) – Attacker can modify system files.
- Availability Impact: High (A:H) – Attacker can disrupt system operations.
Threat Level: High. The vulnerability allows a standard user to escalate to root, leading to full system compromise. The attack is simple and requires no user interaction.
Deep Dive & Mechanics
The vulnerability is a classic symlink attack (CWE-59) in the postinstall script of the Netskope Client installer. During installation, the script attempts to write to a file named “nsinstallation” in a directory where a standard user has write permissions (e.g., /tmp or a user-writable location). The script does not check if the target path is a symlink.
Attack Flow:
- A standard user creates a symbolic link from the expected “nsinstallation” path to a protected system file (e.g.,
/etc/sudoersor a binary in/usr/bin). - The user triggers the Netskope Client installation (e.g., by running the installer or waiting for an automatic update).
- The postinstall script, running with root privileges, writes to the symlinked path, overwriting the target file.
- The attacker can then leverage the modified file to gain root access (e.g., by adding a user to sudoers or replacing a system binary).
The vulnerability is present in all versions before the patched releases. The fix likely involves validating that the target path is not a symlink and using secure file operations (e.g., O_NOFOLLOW flag).
Vulnerable vs. Patched Code
Vulnerable Code (Postinstall Script):
#!/bin/bash
# Vulnerable: No symlink check
touch /tmp/nsinstallation
echo "Installing..." > /tmp/nsinstallation
# ... further operations
Patched Code (Postinstall Script):
#!/bin/bash
# Patched: Check for symlink
if [ -L "/tmp/nsinstallation" ]; then
echo "Error: Symlink detected. Aborting."
exit 1
fi
touch /tmp/nsinstallation
echo "Installing..." > /tmp/nsinstallation
# ... further operations
The patched version explicitly checks if the target path is a symlink before writing. This prevents the privilege escalation.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- A macOS system with a vulnerable Netskope Client version.
- A standard user account.
Steps:
- Create a symlink from the expected path to a critical system file:
ln -s /etc/sudoers /tmp/nsinstallation - Trigger the Netskope Client installation (e.g., by running the installer or waiting for an automatic update).
- The postinstall script, running as root, will overwrite
/etc/sudoerswith the installation output. - Add a malicious entry to gain root access:
echo "attacker ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers - Use
sudoto execute commands as root.
Note: No public exploit code is available. The above is a conceptual demonstration.
Blue Team (Detection & Response)
Detection:
- Monitor for creation of symlinks in directories used by the Netskope Client installer (e.g.,
/tmp,/var/tmp). - Alert on unexpected file modifications to critical system files (e.g.,
/etc/sudoers,/usr/bin/*). - Use file integrity monitoring (FIM) to detect changes to protected files.
Response:
- Immediately isolate affected systems.
- Verify integrity of critical system files using checksums.
- Revert any unauthorized changes (e.g., restore
/etc/sudoersfrom backup). - Apply the vendor patch to prevent re-exploitation.
Indicators of Compromise (IOCs)
- File Path:
/tmp/nsinstallation(symlink) - Process:
postinstallscript running with elevated privileges - Log Entry: Unexpected modification to
/etc/sudoersor other protected files - Network: No network-based IOCs (local vulnerability)
Detection Engineering
YARA Rule
rule CVE_2024_13177_Netskope_Symlink {
meta:
description = "Detects symlink creation for CVE-2024-13177 exploitation"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2024-13177"
strings:
$symlink = "nsinstallation" nocase
$sudoers = "/etc/sudoers" nocase
condition:
$symlink and $sudoers
}
Sigma Rule
title: CVE-2024-13177 - Netskope Client Symlink Privilege Escalation
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects creation of a symlink to /etc/sudoers in /tmp/nsinstallation
author: Valters IT
date: 2025/04/10
logsource:
category: process_creation
product: macos
detection:
selection:
Image|endswith: '/ln'
CommandLine|contains: '/tmp/nsinstallation'
condition: selection
falsepositives:
- Legitimate administrative actions
level: high
Suricata Rule
alert file any any -> any any (msg:"CVE-2024-13177 - Netskope Client Symlink Attack"; file.name:"nsinstallation"; file.magic:"symbolic link"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Upgrade Netskope Client to the patched versions:
- Version 123.0 or later
- Version 117.1.11.2310 or later
- Version 120.1.10.2306 or later
- If immediate patching is not possible, restrict write access to directories used by the installer (e.g.,
/tmp) for standard users. - Implement file integrity monitoring (FIM) on critical system files.
Long-Term Measures:
- Enforce application whitelisting to prevent unauthorized installations.
- Regularly audit system for symlink attacks using the provided detection rules.
- Educate users about the risks of running untrusted software.
Valters IT Signature This report was generated by Valters IT DevSecOps AI. For questions, contact security@valters-it.com.