PyTorch Lightning denial of service vulnerability
The LightningApp endpoint for state changes mishandles unexpected values, so a crafted POST request can shut the server down. An attacker could cause a denial of service by sending such a request.
pytorch-lightning
Originally disclosed on huntr
A vulnerability in lightning-ai/pytorch-lightning version 2.3.2 allows an attacker to cause a denial of service by sending an unexpected POST request to the /api/v1/state endpoint of LightningApp. This issue occurs due to improper handling of unexpected state values, which results in the server shutting down.
From the GitHub Advisory Database (GHSA-98fp-7v67-4v3q, CC BY 4.0).
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 state endpoint does not validate or safely handle unexpected state values, causing the server process to terminate.
Impact
An attacker could cause a denial of service by shutting down the server.
What the attacker needed
Network access to the LightningApp endpoint
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.
A web server has an endpoint that changes the app's state. If someone sends a state value the code does not expect, the server crashes instead of rejecting it politely. That means an outsider can stop the service from working.
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.