Improper line feed handling in zenml
A low-privileged user could add a component with a name containing a line feed character via the API, causing uncontrolled resource consumption. This made it impossible to add new components in certain categories or register new stacks through the UI, potentially rendering the dashboard unusable.
zenml-io/zenml
Originally disclosed on huntr
A denial of service (DoS) vulnerability exists in zenml-io/zenml version 0.56.3 due to improper handling of line feed (\n) characters in component names. When a low-privileged user adds a component through the API endpoint api/v1/workspaces/default/components with a name containing a \n character, it leads to uncontrolled resource consumption. This vulnerability results in the inability of users to add new components in certain categories (e.g., 'Image Builder') and to register new stacks through the UI, thereby degrading the user experience and potentially rendering the ZenML Dashboard unusable. The issue does not affect component addition through the Web UI, as \n characters are properly escaped in that context. The vulnerability was tested on ZenML running in Docker, and it was observed in both Firefox and Chrome browsers.
From the GitHub Advisory Database (GHSA-7gjr-hcc3-xfr4, 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 application failed to sanitise or escape line feed characters in component names submitted via the API, leading to uncontrolled resource consumption when rendering or processing those names.
Impact
The vulnerability could degrade the user experience and potentially render the ZenML Dashboard unusable, but it does not affect component addition through the Web UI because line feed characters are properly escaped there.
What the attacker needed
Low-privileged user account; access to the components API endpoint
How it was found
- As a low-privileged user, send a request to the components API endpoint to add a component with a name containing a line feed character.
- Observe that adding new components in certain categories (e.g., 'Image Builder') and registering new stacks through the UI becomes impossible.
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 line feed is a special character that tells a computer to start a new line. The system did not handle this character properly when it was part of a component name, so it used too much resources and broke parts of the user interface. An attacker with a basic account could exploit this to stop other users from adding components or stacks through the dashboard.
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.