Cloudanix VulnDB

CVE-2023-41182

High · 7.2

CVSS

7.2

EPSS

62.3%

Published

May 3, 2024

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Attend

A flaw in archive handling can let an attacker place malicious files where they do not belong and take over the server running the management software.

Chainable
Exploitation
Remote Authenticated
Attacker needs
High Privilege
Complexity
Moderate
Impact
Remote Code Execution
Component
Application
Class
Path Traversal
Remediation
Patch
Effort
Low
Patch risk
Low

What it actually does

The described flaw is a path traversal vulnerability in ZIP extraction/file-handling logic. A crafted ZIP archive or file-operation request can contain paths such as ../, ..\, absolute Windows paths, or drive-qualified paths that escape the intended extraction directory. Because the vulnerable component performs file writes without canonicalizing and validating the final destination path, an attacker can place files in sensitive locations. In the described NETGEAR ProSAFE Network Management System scenario, exploitation can lead to arbitrary code execution as NT AUTHORITY\SYSTEM, and the stated authentication requirement is weakened by a bypassable authentication mechanism. The supplied package metadata also maps fixed source to dpgaspar/flask-appbuilder commit 4554c40e2298d11c4472ca64b9a60236b12c6535, so affected-product mapping should be verified against authoritative vendor advisories before closing remediation work.

Why it matters to the business

Successful exploitation can give an attacker full control of the server running the affected management application, including the ability to alter network-management data, deploy malware, steal credentials, pivot to managed infrastructure, or disrupt monitoring and administration functions. Although it is not listed in CISA KEV and the input indicates no known ransomware use, the EPSS value is elevated, the issue has been public for a long period, and network-management systems are high-value targets because they often have broad visibility and privileged access to infrastructure.

How an attack unfolds

An attacker first identifies an exposed affected management application and reaches the vulnerable ZIP/file-processing functionality, such as an import, upload, restore, package, or archive-processing workflow. If authentication is required, the attacker attempts to bypass or abuse the authentication mechanism described in the advisory. The attacker then submits a crafted archive containing file names with traversal sequences or absolute paths so that the ZipUtils extraction routine writes outside the intended directory. By choosing a destination that is executed by the application, the operating system, or an administrative service, the attacker can plant a web shell, executable, script, service configuration, scheduled-task payload, or application component. Once the malicious file is invoked, code runs in the security context of the vulnerable service; in the described case this is SYSTEM on Windows. The attacker can then establish persistence, dump credentials, enumerate network-management data, move laterally, or stage destructive actions.

How to fix it

Upgrade affected software to a vendor-fixed release immediately. For source deployments mapped to dpgaspar/flask-appbuilder in the supplied metadata, ensure the deployed code includes commit 4554c40e2298d11c4472ca64b9a60236b12c6535 or a later release that contains that fix, after validating the product mapping with the vendor advisory. For NETGEAR ProSAFE Network Management System deployments matching the described vulnerability, apply the vendor-provided fixed version or remove the product from service if no supported fix is available. As compensating controls, restrict access to the management interface to trusted administrative networks or VPNs, disable or tightly control archive import/upload/restore functionality where possible, enforce strong authentication and MFA, run the service with the least-privileged account rather than SYSTEM where supported, block archive entries containing traversal or absolute paths at the application/WAF layer, and monitor for suspicious child processes from the management service.

How to confirm the fix worked

Confirm remediation by verifying the installed product version, package commit, or vendor build number against the fixed release information. For source-based deployments, confirm that commit 4554c40e2298d11c4472ca64b9a60236b12c6535 or a later equivalent patch is present. Review dependency lock files, container images, appliance firmware/software versions, and SBOM records for stale vulnerable builds. Perform a safe negative test in a non-production environment by uploading a benign ZIP containing traversal-style entries and confirming that extraction rejects the archive or confines all files to the intended directory after canonical path validation. Validate that the management interface is not exposed to untrusted networks and that the service account no longer has unnecessary local administrator/SYSTEM-equivalent privileges where configuration permits.

Typical attack path

  1. Scan for internet-facing or internally reachable affected management applications and version indicators.
  2. Access the vulnerable archive/file-processing workflow, using credential abuse or the described authentication bypass if necessary.
  3. Create a ZIP archive whose internal file names contain traversal sequences, absolute paths, drive-qualified paths, or UNC-style paths.
  4. Upload or submit the archive so the vulnerable ZipUtils logic writes attacker-controlled content outside the intended extraction directory.
  5. Place a payload in a location that will be executed, loaded by the application, served by the web tier, launched as a service, or run by a scheduled task.
  6. Trigger the payload directly or wait for normal application/service execution to load it.
  7. Execute commands with the vulnerable service privileges, potentially SYSTEM, then establish persistence and pivot or exfiltrate data.

How to detect it

Look for evidence of crafted archive processing and post-exploitation behavior. Relevant sources include management-application access logs, upload/import/restore audit logs, reverse-proxy and WAF logs, Windows Security logs, Sysmon or EDR process/file telemetry, PowerShell logs, service-control-manager logs, scheduled-task logs, and file-integrity monitoring. Search for uploaded ZIP files whose member names contain ../, ..\, absolute paths, Windows drive letters, or UNC prefixes. Investigate any files created outside expected upload/extraction directories around the time of archive-processing requests. On Windows, review Event ID 4688 or Sysmon Event ID 1 for cmd.exe, powershell.exe, wscript.exe, cscript.exe, mshta.exe, rundll32.exe, regsvr32.exe, certutil.exe, bitsadmin.exe, or net.exe spawned by the management application or service. Review Event ID 7045 for new services, Event ID 4698 for scheduled-task creation, and PowerShell 4103/4104 for encoded or download cradle commands. Because exploitation may run as SYSTEM, correlate suspicious file writes and child processes launched by service accounts or application service parents rather than relying only on interactive logon activity.

  • ../
  • ..\\
  • /../
  • \\..\\
  • %2e%2e%2f
  • %2e%2e%5c
  • ..%2f
  • ..%5c
  • ZipUtils
  • cmd.exe /c
  • powershell.exe -enc
  • powershell.exe -EncodedCommand
  • powershell.exe -nop
  • powershell.exe -w hidden
  • certutil.exe -urlcache
  • bitsadmin /transfer
  • mshta.exe http
  • regsvr32.exe /s /n /u /i:
  • rundll32.exe javascript:
  • Event ID 7045
  • Event ID 4698
  • NT AUTHORITY\\SYSTEM
  • C:\\Windows\\Temp\\
  • C:\\Windows\\System32\\Tasks\\
  • C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\
  • C:\\inetpub\\wwwroot\\
  • *.jsp
  • *.aspx
  • *.ashx
  • *.war

What your security team should do

  • Treat affected externally reachable or privileged management servers as high priority because the flaw can become SYSTEM-level remote code execution and EPSS is elevated.
  • Patch or upgrade affected deployments; for supplied source metadata, verify inclusion of dpgaspar/flask-appbuilder commit 4554c40e2298d11c4472ca64b9a60236b12c6535 or later, and separately validate the NETGEAR ProSAFE NMS applicability described in the advisory text.
  • Immediately restrict access to the affected management interface to administrative networks, VPNs, or allowlisted jump hosts until patching is complete.
  • Hunt for suspicious archive uploads, path traversal strings in upload/import requests, and unexpected files written outside application upload or temporary directories.
  • Review Windows process-creation, service-installation, scheduled-task, and PowerShell logs for execution spawned by the affected management service account.
  • If compromise is suspected, preserve uploaded archives, application logs, Windows event logs, webroot contents, service configuration, scheduled tasks, and volatile process/network state before rebuilding.
  • Rotate credentials and API keys accessible to the management application if unauthorized code execution cannot be ruled out.
  • Add preventive controls to CI/CD and application gateways that reject ZIP entries containing traversal, absolute paths, Windows drive paths, or UNC paths.

The record

NETGEAR ProSAFE Network Management System ZipUtils Directory Traversal Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of NETGEAR ProSAFE Network Management System. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed. The specific flaw exists within the ZipUtils class. The issue results from the lack of proper validation of a user-supplied path prior to using it in file operations. An attacker can leverage this vulnerability to execute code in the context of SYSTEM. Was ZDI-CAN-19716.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities