SugarCRM <= 13.0.1 (GetControl) Server-Side Template Injection Vulnerability
The GetControl action in the Import module does not properly sanitise the field_name parameter before using it to build a template path. An attacker could use path traversal to include and execute arbitrary PHP code.
karmainsecurity.com
Published on karmainsecurity.com
There is a sort of Server-Side Template Injection (SSTI) vulnerability affecting the “GetControl” action from the “Import” module. User input passed through the “fieldname” parameter is not properly sanitized before being used to construct the path of the template to include.
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
Impact
An attacker could include and execute arbitrary PHP code on the server, which may lead to full compromise.
What the attacker needed
Access to the Import module GetControl action
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.
A template is a file the server fills in to make a web page. Here the server lets a user choose which template file to load, and it does not check the choice properly. By using a path that climbs out of the intended folder, an attacker can make the server load and run their own PHP code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.