exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

SugarCRM 6.5.18 fopen() Command Injection / XSS / SSRF

SugarCRM 6.5.18 fopen() Command Injection / XSS / SSRF
Posted Jun 24, 2016
Authored by EgiX

SugarCRM versions 6.5.18 and below suffer from a MySugar::addDashlet insecure fopen() usage that can lead to command injection, cross site scripting, and server-side request forgery exploitation.

tags | exploit, xss
SHA-256 | b5ea2947c8c691e63cd8b15a2ad9c1ce3e6371ed8f9cad785fad1655ff9e56d0

SugarCRM 6.5.18 fopen() Command Injection / XSS / SSRF

Change Mirror Download
-----------------------------------------------------------------------------
SugarCRM <= 6.5.18 (MySugar::addDashlet) Insecure fopen() Usage Vulnerability
-----------------------------------------------------------------------------


[-] Software Link:

http://www.sugarcrm.com/


[-] Affected Versions:

Version 6.5.18 CE and other versions.


[-] Vulnerability Description:

The vulnerable code is located within the MySugar::addDashlet() method:

89. if (isset($_REQUEST['type']) && $_REQUEST['type'] == 'web') {
90. $dashlet_module = 'Home';
91. require_once('include/Dashlets/DashletRssFeedTitle.php');
92. $options['url'] = $_REQUEST['type_module'];
93. $webDashlet = new DashletRssFeedTitle($options['url']);
94. $options['title'] = $webDashlet->generateTitle();

User input passed through the "type_module" 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()" function):

71. public function readFeed() {
72. if ($this->url) {
73. $fileOpen = @fopen($this->url, 'r');
74. if ($fileOpen) {
75. $this->fileOpen = true;
76. $this->contents = fread($fileOpen, $this->readBytes);
77. fclose($fileOpen);
78. return true;
79. }

This can be exploited by authenticated attackers to carry out Server-Side Request Forgery (SSRF) attacks,
potentially read content of arbitrary files, initiate a Cross-Site Scripting (XSS) attack, or execute
arbitrary OS commands when the "expect" extension is installed through the following URL:

http://[host]/[sugar]/index.php?module=Home&action=DynamicAction&DynamicAction=addDashlet&id=1&type=web&type_module=expect://[cmd]


[-] Solution:

Update to version 6.5.19 CE or higher to partially mitigate the vulnerability.
No official solution is currently available against the SSRF and XSS attack vectors.


[-] Disclosure Timeline:

[15/10/2014] - Vendor notified
[15/12/2014] - Version 6.5.19 CE released: http://bit.do/sugar6519
[29/04/2015] - CVE number requested
[23/06/2016] - Public disclosure


[-] CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org)
has not assigned a CVE identifier for this vulnerability.


[-] Credits:

Vulnerability discovered by Egidio Romano.


[-] Original Advisory:

http://karmainsecurity.com/KIS-2016-06



Login or Register to add favorites

File Archive:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    28 Files
  • 16
    Jul 16th
    6 Files
  • 17
    Jul 17th
    34 Files
  • 18
    Jul 18th
    6 Files
  • 19
    Jul 19th
    34 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    19 Files
  • 23
    Jul 23rd
    17 Files
  • 24
    Jul 24th
    47 Files
  • 25
    Jul 25th
    31 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close