Eclipse ThreadX NetX Duo HTTP server denial of service vulnerability
The NetX Duo HTTP server fails to close a file after an error during a PUT request, leaving the file handle open. Subsequent HTTP requests for any file resource then fail with a 404 error, causing a denial of service.
Originally disclosed on Cisco Talos
A denial of service vulnerability exists in the NetX HTTP server functionality of Eclipse ThreadX NetX Duo git commit 6c8e9d1. A specially crafted network packet can lead to denial of service.
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 error path in the PUT request handler returns without calling the file close function, leaving the single shared file handle open and causing subsequent file opens to fail.
Impact
An attacker could cause the HTTP server to respond with 404 errors for all file resources, resulting in a denial of service.
What the attacker needed
Ability to send HTTP requests to the server
The fix
The vendor released a patch; developers can also mitigate by disabling PUT request processing in an application callback.
How it was found
- Send an HTTP PUT request with a Content-Length larger than the data in the first packet.
- Do not send any additional data, causing the server to time out while waiting for more packets.
- The server enters an error condition and returns without closing the file.
- Send any subsequent HTTP request involving a file resource, which will receive a 404 error.
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.
When a web server receives a file upload request, it opens a file to write the data. If something goes wrong during the upload, the server should close that file so it can be used again later. Here, the server forgets to close the file, and because it only has one file handle for all requests, every later request for a file fails with a 'not found' error, effectively breaking the server's file serving.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.