Insecure deserialization in BentoML
BentoML deserialises untrusted data sent to any valid endpoint, so a crafted serialised object can run operating system commands on the server. An attacker could therefore execute arbitrary commands and take control of the host.
bentoml/bentoml
Originally disclosed on huntr
An insecure deserialization vulnerability exists in the BentoML framework, allowing remote code execution (RCE) by sending a specially crafted POST request. By exploiting this vulnerability, attackers can execute arbitrary commands on the server hosting the BentoML application. The vulnerability is triggered when a serialized object, crafted to execute OS commands upon deserialization, is sent to any valid BentoML endpoint. This issue poses a significant security risk, enabling attackers to compromise the server and potentially gain unauthorized access or control.
From the GitHub Advisory Database (GHSA-hvj5-mvw9-93j3, 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 framework deserialises request data without restricting which classes can be reconstructed, so a crafted object can trigger command execution during deserialisation.
Impact
An attacker could execute arbitrary commands on the server hosting the BentoML application, potentially gaining unauthorised access or control.
What the attacker needed
Network access to a BentoML 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.
Deserialisation is when a program turns stored or sent data back into a live object. If that data is not trusted, an attacker can shape it so that rebuilding the object runs their own commands. Here, anyone who can reach a BentoML endpoint could make the server run commands of their choosing.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.