Document Title: =============== FortiCloud - Reports Summary Persistent Vulnerabilities References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1735 Vulnerability Magazine: http://magazine.vulnerability-db.com/?q=articles/2016/08/08/fortinet-patches-series-remote-vulnerabilities-appliance-products Bulletin: http://fortiguard.com/advisory/forticloud-cross-site-script-persistent-web-vulnerabilities Release Date: ============= 2016-08-04 Vulnerability Laboratory ID (VL-ID): ==================================== 1735 Common Vulnerability Scoring System: ==================================== 4.3 Product & Service Introduction: =============================== FortiCloud is a hosted solution that helps you manage your FortiGate® network and your FortiAP® wireless infrastructure. The perfect companion to all your FortiGate & FortiWiFi units. FortiCloud is a hosted security and wireless infrastructure management solution and log retention service for FortiGate, FortiWiFi and FortiAP devices. It gives you centralized reporting, traffic analysis, configuration management, and log retention without the need for additional hardware and software, with the following feature set: ( Copy of the Vendor Homepage: http://docs.fortinet.com/uploaded/files/1730/forticloud-faq-25.pdf ) Abstract Advisory Information: ============================== An independent vulnerability laboratory researcher discovered multiple application-side validation vulnerabilities in the official Forticloud online service web-application. Vulnerability Disclosure Timeline: ================================== 2016-02-17: Researcher Notification & Coordination (Lawrence Amer) 2016-02-18: Vendor Notification (Fortguard PSIRT Security Team) 2016-03-02: Vendor Response/Feedback (Fortguard PSIRT Security Team) 2016-07-04: Vendor Fix/Patch (Fortinet Developer Team) 2016-08-05: Public Disclosure (Vulnerability Laboratory) 2016-08-09: Vendor Security Bulletin (FortiGuard Security Team Discovery Status: ================= Published Affected Product(s): ==================== Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ Multiple persistent cross site scripting web vulnerabilities has been discoverd in the offical version of Forticloud online service web-application. The security vulnerability allows remote attackers to inject own malicious script codes on the application-side of the affected online service module. The persistent input validation web vulnerabilities are located in the `Template - Summary` module of the main `Reports` module. The encoding of the add inputs in the title, description and charts is broken. Remote attackers with low or privileged web-application user accounts are able to inject own malicious script codes on the application-side of the reports - summary module. The request method to inject is POST and the attack vector is located on the application-side of the forticloud service. The injection point are the title, description and charts add input fields and the execution point is the reports - summary module of the web-application. Exploitation of the persistent input validation web vulnerability requires a low privileged web-application user account and low or medium user interaction. Successful exploitation of the vulnerability results in session hijacking, persistent phishing, persistent external redirects to malicious source and persistent manipulation of affected or connected application modules. Request Method(s): [+] POST Vulnerable Module(s): [+] FortiCloud - Reports - Templates Vulnerable Input(s): [+] Reports Main title [+] Reports Descriptions [+] Report Charts Vulnerable Parameter(s): [+] ext-gen2538, ext-gen2458 & gwt-HTML [+] fc-rpt-description [+] fc-rpt-title [+] fc-rpt-chart Affected Module(s): [+] Summary (Main.html - Index) Proof of Concept (PoC): ======================= The application-side web vulnerabilities can be exploited by remote attackers with low privileged application user account and low or medium user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. Open the forticloud appliance web-application and login 2. Open the reports > templates module 3. Switch to Summary Reports 4. Edit existing or Add a new own title , description or chart 5. Inject as name value a script code payload (javascript) Note: >"
PoC: Summary Reports - com.fortinet.gwt.Main/Main.html (Add Charts)
--- PoC Session Logs [POST] --- Status: 200[OK] POST https://forticloud.localhost:7641/com.fortinet.gwt.Main/account Mime Type[application/json] Request Header: Host[forticloud.localhost:7641] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Content-Type[text/x-gwt-rpc; charset=utf-8] x-gwt-permutation[D7292270AC638FB6CE5F48AC977F99B4] X-GWT-Module-Base[https://forticloud.localhost:7641/com.fortinet.gwt.Main/] Referer[https://forticloud.localhost:7641/com.fortinet.gwt.Main/Main.html?locale=en_US&seq=1455786963849&logoutUrl=login.jsp&loginurl=] Cookie[JSESSIONID=5AF2C62793B0AC3B70B31A150E1E1923] Connection[keep-alive] POST-Daten: 7|0|4|https://forticloud.localhost:7641/com.fortinet.gwt.Main/|3C6EAA58CDA996EE4B7102D4CDB7AFC4|com.fortinet.gwt.client.portal.account.AccountService|getLastLoginData|1|2|3|4|0|[] Response Header: Server[Apache-Coyote/1.1] X-Frame-Options[SAMEORIGIN] Content-Disposition[attachment] Content-Type[application/json;charset=utf-8] - Status: 200[OK] GET https://forticloud.localhost:7641/com.fortinet.gwt.Main/x[PERSISTENT INJECTED SCRIPT CODE EXECUTION!] Mime Type[text/html] Request Header: Host[forticloud.localhost:7641] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0] Accept[image/png,image/*;q=0.8,*/*;q=0.5] Referer[https://forticloud.localhost:7641/com.fortinet.gwt.Main/Main.html?locale=en_US&seq=1455786963849&logoutUrl=login.jsp&loginurl=] Cookie[JSESSIONID=5AF2C62793B0AC3B70B31A150E1E1923] Connection[keep-alive] Response Header: Server[Apache-Coyote/1.1] Cache-Control[private] Expires[Wed, 31 Dec 1969 16:00:00 PST] X-Frame-Options[SAMEORIGIN] Content-Type[text/html;charset=utf-8] Content-Length[1024] Reference(s): https://forticloud.localhost:7641/ https://forticloud.localhost:7641/com.fortinet.gwt.Main/ https://forticloud.localhost:7641/com.fortinet.gwt.Main/account Solution - Fix & Patch: ======================= 1. Encode and parse the vulnerable input fields (title, charts and description) 2. Escape the input via edit and add 3. Restrict the input and disallow usage of special chars on add or edit 4. Encode the vulnerable summary module to prevent an application-side script code execution 5. Implement a secure exception-handling to prevent further injection attacks Note: Update automated or by manual interaction with the fortinet customer panel and download the patched 3.0.0 version to address the issue. Updates are available for customers in the fortinet customer area or via automated appliance update. FortiCloud v3.0.0 Security Risk: ============== The security risk of the application-side input validation web vulnerabilities in the forticloud web-application are estimated as medium. Credits & Authors: ================== Vulnerability Laboratory [Research Team] - Lawrence Amer - ( http://www.vulnerability-lab.com/show.php?user=Lawrence%20Amer ) Disclaimer & Information: ========================= The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases or trade with fraud/stolen material. Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com Contact: admin@vulnerability-lab.com - research@vulnerability-lab.com - admin@evolution-sec.com Section: magazine.vulnerability-db.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register/ Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact (admin@vulnerability-lab.com or research@vulnerability-lab.com) to get a permission. Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™
">[PERSISTENT SCRIPT CODE EXECUTION!]