SugarCRM <= 6.5.18 (MySugar::addDashlet) Insecure fopen() Usage Vulnerability
The MySugar::addDashlet() method passes the type_module request parameter into a DashletRssFeedTitle object without sanitising it, and that value reaches the fopen() PHP function. An attacker could use this to make the server open a resource of their choosing, which the text says could enable certain attacks without naming them.
karmainsecurity.com
Published on karmainsecurity.com
User input passed through the “typemodule” request parameter isn’t properly sanitized before being used to instantiate a new DashletRssFeedTitle object, and this could be exploited to carry out certain attacks because of the DashletRssFeedTitle::readFeed() method (user input passed directly to the fopen() 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 missing validation of the type_module parameter before it is handed to fopen() inside the RSS feed reader, allowing the caller to control the resource being opened.
Impact
An attacker could influence which resource the server opens through fopen(), which the text says could be exploited to carry out certain attacks, though it does not demonstrate a concrete outcome.
What the attacker needed
Access to the MySugar dashlet feature; ability to send a crafted type_module value
The fix
The type_module value should be validated and restricted to expected values before it is used to build the feed URL passed to fopen().
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 PHP web application. A function called fopen() is normally used to open a file or a web address on the server. Here the address comes straight from a user-supplied form field, so a visitor can decide what the server opens. That is dangerous because the server may reach places the visitor should not be able to reach.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.