Document Title:
===============
FortiManager (Series) - Multiple Web Vulnerabilities
References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1684
Fortinet PSIRT ID: 1624459
Bulletin: http://fortiguard.com/advisory/fortimanager-and-fortianalyzer-persistent-xss-vulnerability-1
Release Notes 1: http://docs.fortinet.com/uploaded/files/2910/fortimanager-v5.4.0-release-notes.pdf
Release Notes 2: http://docs.fortinet.com/uploaded/files/2963/fortimanager-v5.2.6-release-notes.pdf
Release Notes 3: http://docs.fortinet.com/uploaded/files/2456/fortimanager-v5.0.11-release-notes.pdf
Vulnerability Magazine: http://magazine.vulnerability-db.com/?q=articles/2016/08/08/fortinet-patches-series-remote-vulnerabilities-appliance-products
http://web.nvd.nist.gov/view/vuln/detail?vulnId=2016-3193
CVE-ID:
=======
2016-3193
Release Date:
=============
2016-08-01
Vulnerability Laboratory ID (VL-ID):
====================================
1684
Common Vulnerability Scoring System:
====================================
4.5
Vulnerability Class:
====================
Multiple
Current Estimated Price:
========================
2.000€ - 3.000€
Product & Service Introduction:
===============================
FortiManager appliances allow you to centrally manage any number of Fortinet devices, from several to thousands, including FortiGate®, FortiWiFi™,
FortiCarrier™, FortiMail™ and FortiAnalyzer™ appliances and virtual appliances, as well as FortiClient™ endpoint security agents. You can further
simplify control and management of large deployments by grouping devices and agents into administrative domains (ADOMs).
The FortiManager family of management appliances provides centralized policy-based provisioning, device configuration, and update management for
FortiGate, FortiWiFi, and FortiMail appliances, and FortiClient end-point security agents, plus end-to-end network monitoring and device control.
FortiManager delivers a lower TCO for Fortinet implementations by minimizing both initial deployment costs and ongoing operating expenses. Control
administrative access and simplify policy deployment using role-based administration to define user privileges for specific management domains and
functions, and aggregating collections of Fortinet appliances and agents into independent management domains. In addition, by locally hosting security
content updates for managed devices and agents, FortiManager appliances minimize Web filtering rating request response time and maximize network protection.
(Copy of the Vendor Homepage: http://www.avfirewalls.com/FortiManager-Series.asp )
Abstract Advisory Information:
==============================
The Vulnerability Laboratory Core Research Team discovered a persistent and non-persistent web validation vulnerability in
the official Fotinet FortiManager appliance product series. The issue affects the web-application of the appliance series and is
present in the following fortimanager models - 200D, 300D, 1000D, 3900E, 4000E, Virtual Appliances Version and FortiMoM-VM.
The Fortimanager legacy models 100, 100C, 400A, 400B, 400C, 1000C, 3000C and 4000D are affected as well by the vulnerability.
Vulnerability Disclosure Timeline:
==================================
2016-01-25: Researcher Notification & Coordination (Benjamin Kunz Mejri - Evolution Security GmbH)
2016-01-26: Vendor Notification (FortiGuard Security Team)
2016-02-08: Vendor Response/Feedback (FortiGuard Security Team)
2016-05-17: Vendor Fix/Patch #1 (Fortinet Service Developer Team)
2016-07-28: Vendor Fix/Patch #2 (Fortinet Service Developer Team)
2016-08-02: Public Disclosure (Vulnerability Laboratory)
2016-08-09: Vendor Security Bulletin (FortiGuard Security Team)
Discovery Status:
=================
Published
Affected Product(s):
====================
Fortinet
Product: FortiManager - Appliance (Web-Application) 200D, 300D, 1000D, 3900E, 4000E, Virtual Appliances Versio
Fortinet
Product: FortiManager - Appliance (Web-Application) Legacy - 100, 100C, 400A, 400B, 400C, 1000C, 3000C & 4000
Exploitation Technique:
=======================
Remote
Severity Level:
===============
Medium
Technical Details & Description:
================================
A persistent and non-persistent input validation web vulnerability has been discovered in the official Fotinet FortiManager appliance product series.
The vulnerability allows privileged guest user accounts and restricted user accounts to inject own malicious script codes on the application-side or
client-side of the fortimanager appliance web-application series.
The vulnerability is located in the `add Tags` input field of the `Firewall Objects - Address - Tags` module. The request method to inject is POST to
GET and the attack vector is located on the application-side of the appliance web-application. Remote attackers are able to inject own malicious script
codes to the add tag input field. After processing to add, the code bypasses the regular web filter of the appliance web-application and executes finally
in the applied tags module above of the basic input. The vulnerability can be exploited by guest appliance user accounts with restricted access. The
vulnerability first executes with client-side attack vector and becomes persistent with the save procedure by return.
Exploitation of the application-side web vulnerability requires a low privileged guest web-application user account and low user interaction. Successful exploitation
of the vulnerability results in persistent phishing, session hijacking, persistent external redirect to malicious sources and application-side manipulation of affected
or connected web module context.
Request Method(s):
[+] POST
Vulnerable Module(s):
[+] Firewall Objects - Address - Tags - [Add Tags]
Vulnerable Parameter(s):
[+] appliedTags - tagList (tagSelector-addTag create-new)
Affected Module(s):
[+] Applied Tags
Affected Serie(s): FortiManager
[+] FortiManager 200D
[+] FortiManager 300D
[+] FortiManager 1000D
[+] FortiManager 3900E
[+] FortiManager-4000E
[+] FortiManager Virtual Appliances
[+] FortiMoM-VM
FortiManager Legacy Models
[+] FortiManager 100
[+] FortiManager 100C
[+] FortiManager 400A
[+] FortiManager 400B
[+] FortiManager 400C
[+] FortiManager 1000C
[+] FortiManager 3000C
[+] FortiManager 4000D
Proof of Concept (PoC):
=======================
The persistent and non-persistent cross site scripting web vulnerability can be exploited by remote attackers with low privileged web-application user account and low 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 as guest user with restricted access privileges ...
1. Login to the fortimanager appliance web-application as guest user
2. Open the following section that is not restricted to guests mainly (Firewall Objects > Address )
3. Now, switch to the Tags section and click to the non-restricted button [Add Tags]
4. Add in the `Add Tags` and inject to the input field your test payload to approve the validation
Note: (Payload) "><"%20%20>"