
RCE exploit for low privileged user via CSRF in open-webui
$${\color{red} THIS \space EXPLOIT \space MAY \space VIOLATE \space THE \space LAW.}$$ $${\color{red}\space YOU \space ARE \space RESPONSIBLE \space FOR \space YOUR \space ACTIONS.}$$ $${\color{red}DEMONSTRATION \space PURPOSE \space ONLY.}$$
RCE by Non-Admin Users via CSRF in open-webui which allow attacker to send malicious HTML document with build-in javascript that will upload and execute file contains revers shell.
Before main stage script starts web server to give HTML document with multipart form data submission and netcat listener. Next, upload document to the vulnerable site and on page load event javascript will upload file contains python revers shell. If everything is fine you'll receive revers shell in the terminal. Also, if directory listing is visible you can visit page and try to manually check file uploading process and debug.
git clone https://github.com/theUnknownSoul/CVE-2024-7806install.sh script and run from root to install all necessary system dependencies
and rights.serve.sh script if needed.non_suspicious_file.py. pip install -r requirements.txtpython CVE-2024-7806.py -u <target url>