(CVE-2023-1713) Bitrix24 Remote Command Execution (RCE) via Insecure Temporary File Creation
Bitrix24 created temporary files with attacker-controlled names during Instagram order import, allowing an authenticated user to upload a crafted .htaccess file. This could let the attacker execute arbitrary code on the server.
starlabs.sg
Published on starlabs.sg
This report presents information on an insecure temporary file creation vulnerability in Bitrix24 which allows an adversary to run arbitrary commands on the affected web server.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Instagram order import feature used user-supplied input to name temporary files without sanitising it, allowing a file with a dangerous name and type to be written.
Impact
An authenticated attacker could execute arbitrary code on the server, leading to full compromise of confidentiality, integrity and availability.
What the attacker needed
Authenticated user account; Bitrix24 22.0.300 on Apache
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 write-up has not been written yet. The Original tab links to the source.
The application let a logged-in user control the name of a temporary file it created. By uploading a special configuration file called .htaccess, the user could change how the web server handles files and run their own code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.