InHand Networks InRouter302 httpd port 4444 upload.cgi leftover debug code vulnerability
A leftover debug code in the httpd server on port 4444 of InHand Networks InRouter302 allows an attacker to bypass filename checks and delete arbitrary files. By sending a crafted HTTP request, an attacker can cause the deletion of any file on the device.
Originally disclosed on Cisco Talos
A leftover debug code vulnerability exists in the httpd port 4444 upload.cgi functionality of InHand Networks InRouter302 V3.5.45. A specially-crafted HTTP request can lead to arbitrary file deletion.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the debug code on port 4444 skips re-initialisation of CGI variables, allowing URL parameters to override the filename used in a file deletion routine without proper validation.
What the attacker needed
Access to port 4444; authentication as high-privileged user
The fix
The vendor released a patch to address the vulnerability.
How it was found
- Send an HTTP request to the upload.cgi endpoint on port 4444.
- Include a filename parameter in the URL with the path of the file to delete.
- The server processes the request and deletes the specified file.
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 report has not been written yet. The Original tab links to the source.
This router runs a web server on a non-standard port that includes debug code. That debug code fails to properly validate user input, letting an attacker trick the router into deleting any file it has access to. This could break the device or remove important system files.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.