Skip to content
DoS Advisory Intermediate CVE-2024-50384CVE-2024-50385

STMicroelectronics X-CUBE-AZRTOS-F7 HTTP server denial of service vulnerability

The HTTP server in STMicroelectronics' Azure RTOS packages fails to close a file when a PUT request errors out after the file is opened. An attacker can send a PUT request whose declared length exceeds the data sent, leaving the shared file handle open so that all later requests for file resources return 404.

Kelly Patterson Follow

Originally disclosed on Cisco Talos

Medium 6.5 View original

A denial of service vulnerability exists in the NetX Component HTTP server functionality of STMicroelectronics X-CUBE-AZRTOS-WL 2.0.0. A specially crafted network packet can lead to denial of service.

Kelly Patterson, on Cisco Talos

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 an error path in the PUT handler returns without calling the file close routine, leaving the single shared file handle open so later opens fail.

Impact

Any later request for a file resource fails with a 404, effectively denying file serving until the server is restarted; the text does not claim memory corruption or code execution.

What the attacker needed

Network access to the HTTP server; PUT request handling enabled

The fix

Developers should disable processing of PUT requests by ending them in an application callback request notify function; the vendor released a patch.

How it was found

  1. Send an HTTP PUT request whose Content-Length is larger than the data in the first packet.
  2. Send no further data so the server's attempt to receive another packet times out.
  3. The server hits its error path and returns without closing the file.
  4. Send any later request for a file resource and observe the 404 response.

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.

These packages run a small web server on a microcontroller. The server keeps one file handle (a pointer used to read or write a file) for all requests. If a file is opened for writing and something goes wrong, the code returns without closing it, and because the handle is still marked as open, every later request for a file fails with 'not found'.

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.

More by Kelly Patterson

View all

20 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.