SugarCRM <= 9.0.1 Multiple Path Traversal Vulnerabilities
User input passed to the /Mail/attachment REST API endpoint is not properly sanitised before being used to delete a file, allowing path traversal. An attacker could delete arbitrary files, including config.php, and re-install the application, potentially leading to full server compromise.
karmainsecurity.com
Published on karmainsecurity.com
https://support.sugarcrm.com/Documentation/SugarVersions/9.0/Ent/Sugar9.0.2ReleaseNotes
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 delete arbitrary files, including config.php, and re-install the application, potentially leading to full server compromise.
What the attacker needed
Access to the /Mail/attachment endpoint
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 takes a file path from a user and uses it to delete a file without checking that the path stays inside the intended folder. By using special sequences like '../', an attacker can make the path point to other files on the server. Deleting important files like config.php can let the attacker reinstall the application and take control.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.