CVE-2024-46506: Unauthenticated RCE in NetAlertx
The NetAlertX web application lacked authentication checks on the util.php endpoint, allowing an unauthenticated attacker to update plugin settings and inject a command that would be executed when the application reloaded. This resulted in remote code execution on the server.
NetAlertX is an open-source Wi-Fi / Local Area Network (LAN) intruder detector that scans for devices connected to your network and alerts you if new and unknown devices are found.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An unauthenticated attacker could execute arbitrary commands on the server, potentially pivoting to the LAN and evading detection.
What the attacker needed
Network access to the NetAlertX web interface; No authentication required
The fix
The vulnerability was fixed in version v24.10.12, and additional bypasses were addressed in a subsequent commit.
How it was found
- Send a POST request to util.php with the parameter function=savesettings.
- Include a plugin command setting containing a malicious command.
- The saveSettings() function updates the plugin command and reloads the application.
- During reload, the plugin command is executed, achieving remote code execution.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
NetAlertX is a tool that watches your network for intruders. The web interface had a settings page that was supposed to be protected, but the part that actually saves settings did not check who was making the request. An attacker could send a request directly to that part and change a setting to run their own command on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.