Remote Code Execution in create_conda_env function in lollms
The create_conda_env function in lollms used shell=True in subprocess.Popen, allowing command injection through the env_name and python_version parameters. An attacker could execute arbitrary commands, as demonstrated by running 'whoami'.
lollms
Originally disclosed on huntr
A remote code execution vulnerability exists in the create_conda_env function of the parisneo/lollms repository. The vulnerability arises from the use of shell=True in the subprocess.Popen function, which allows an attacker to inject arbitrary commands by manipulating the env_name and python_version parameters. This issue could lead to a serious security breach as demonstrated by the ability to execute the 'whoami' command among potentially other harmful commands.
From the GitHub Advisory Database (GHSA-79h8-gxhq-q3jg, 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
Impact
An attacker could execute arbitrary commands on the system, potentially leading to a serious security breach.
What the attacker needed
Access to the create_conda_env function
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 program builds a command line and runs it through a shell, any extra characters in user input can be treated as additional commands. Here, the environment name and Python version were passed into a shell command without proper escaping, so an attacker could add their own commands. This is dangerous because it lets an attacker run anything on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.