Cyber Security News

Zyxel NWA50AX Pro Hit by N-Day Flaw Allowing Arbitrary File Deletion

A recent vulnerability has been discovered in the Zyxel NWA50AX Pro, a WiFi 6 access point for small businesses, exposing it to an n-day flaw that allows arbitrary file deletion via a misconfigured CGI endpoint.

This issue, tracked as CVE-2024-29974, highlights the risks of shared codebases and incomplete patching in embedded devices.

Discovery and Technical Analysis

The flaw was identified during a casual vulnerability research session, where the researcher analyzed the device’s firmware and web server configuration.

The Zyxel NWA50AX Pro runs a lighttpd web server, with configuration files referencing modules such as mod_access, mod_alias, mod_redirect, mod_rewrite, mod_setenv, and mod_openssl.

The document root is set to /usr/local/zyxel-gui/htdocs, and CGI binaries are used for web functionalities.

Authentication is managed by custom configuration files like auth_zyxel.conf, which define global and user-specific URL whitelists using parameters such as AuthZyxelSkipPattern and AuthZyxelSkipUserPattern.

By enumerating these whitelisted paths, the researcher found that certain CGI endpoints, including /cgi-bin/file_upload-cgi, could be accessed without authentication under specific URL permutations.

Static analysis using Ghidra revealed that the file_upload-cgi binary processes user-supplied parameters such as file_path, file_path.length, and file_path.filename.

The code concatenates the user-controlled file_path.filename to a static /tmp directory using snprintf, creating a path traversal vulnerability.

The binary then calls unlink to delete the specified file and rename to move another file in its place.

By crafting a POST request with manipulated parameters, an attacker can delete arbitrary files on the device, such as the login page logo image, without authentication.

A proof-of-concept POST request to /cgi-bin/file_upload-cgi/images with a crafted payload successfully deleted a critical file, demonstrating the arbitrary file deletion primitive.

This vulnerability could be leveraged for further attacks, such as replacing configuration or password files, potentially leading to privilege escalation or denial of service.

Patch Status and Broader Implications

Newer firmware versions attempt to patch the flaw by checking for authentication cookies like authtok=, but many devices remain unpatched and exposed on the public internet.

The issue underscores the challenges of vulnerability management in environments where code reuse is prevalent and CVE coverage is incomplete.

The CVE-2024-29974 flaw in the Zyxel NWA50AX Pro exemplifies the risks of insufficiently secured embedded devices and the importance of rigorous vulnerability research.

Administrators are urged to review their device firmware and apply available patches to mitigate the risk of arbitrary file deletion attacks.

Find this News Interesting! Follow us on Google News, LinkedIn, and X to Get Instant Updates

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

2 days ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

2 days ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

2 days ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

2 days ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

2 days ago