vtiger CRM <= 5.4.0 (vtigerolservice.php) PHP Code Injection Vulnerability
The AddEmailAttachment SOAP method in vtiger CRM writes attacker-supplied file data to a path built from the filename without sanitising it, so a user with a valid session could inject PHP code that the server later executes. The text shows the vulnerable function but does not demonstrate a working exploit.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerable code is located in the AddEmailAttachment() SOAP method defined in /soap/vtigerolservice.php:
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 attachment filename and file data are written to a server path without validation or restriction on file type, allowing PHP code to be stored and executed.
What the attacker needed
Valid user session; access to the SOAP service
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.
This is a customer relationship management (CRM) web application that lets users attach files to emails through a web service. The code that saves the attachment trusts the filename and contents too much, so someone who is logged in could plant a file that the server runs as a program. That would let them run their own code 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.