ID

VAR-201509-0287


CVE

CVE-2015-5736


TITLE

Fortinet FortiClient of Fortishield.sys Vulnerability to execute arbitrary code in driver

Trust: 0.8

sources: JVNDB: JVNDB-2015-004585

DESCRIPTION

The Fortishield.sys driver in Fortinet FortiClient before 5.2.4 allows local users to execute arbitrary code with kernel privileges by setting the callback function in a (1) 0x220024 or (2) 0x220028 ioctl call. FortiClient is prone to a local privilege-escalation vulnerability. Fortinet FortiClient is a mobile terminal security solution developed by Fortinet. The solution provides IPsec and SSL encryption, WAN optimization, endpoint compliance, and two-factor authentication when connected to FortiGate firewall appliances. 1. Advisory Information Title: FortiClient Antivirus Multiple Vulnerabilities Advisory ID: CORE-2015-0013 Advisory URL: http://www.coresecurity.com/advisories/forticlient-antivirus-multiple-vulnerabilities Date published: 2015-09-01 Date of last update: 2015-09-01 Vendors contacted: Fortinet Release mode: Coordinated release 2. Vulnerability Information Class: Information Exposure [CWE-200], Write-what-where Condition [CWE-123], Exposed Dangerous Method or Function [CWE-749], Exposed IOCTL with Insufficient Access Control [CWE-782] Impact: Code execution Remotely Exploitable: No Locally Exploitable: Yes CVE Name: CVE-2015-4077, CVE-2015-5735, CVE-2015-5736, CVE-2015-5737 3. Vulnerability Description Fortinet FortiClient [1] extends the power of FortiGate's Unified threat management to endpoints on your network. Desktops, laptops, tablets and smartphones, FortiClient enables every device - local or remote, stationary or mobile - to integrate with your FortiGate. With no per-seat license fees, FortiClient takes the headaches out of managing multiple endpoints so your users and guests can work efficiently anywhere, without compromising your security. FortiClient drivers are prone to multiple attacks and expose a wide surface that allows users to easily get SYSTEM privileges. 4. Vulnerable packages FortiClient 5.2.3.633 Other versions may probably be affected too, but they were not checked. 5. Vendor Information, Solutions and Workarounds Fortinet released an updated version of FortiClient 5.2.4.0650 [2] that fixes the reported issues. 6. Credits These vulnerabilities were discovered and researched by Enrique Nissim from Core Security's Consulting Team. The publication of this advisory was coordinated by Joaquín Rodríguez Varela from Core Security's Advisories Team. 7. Technical Description / Proof of Concept Code [CVE-2015-4077] The vulnerability lies in the drivers "mdare64_48.sys", "mdare32_48.sys", "mdare32_52.sys" and "mdare64_52.sys". By using the IOCTL 0x22608C with the proper parameters, an attacker is able to read arbitrary memory content from kernelspace. By using the IOCTL 0x226108, the attacker is able to call ZwEnumerateValueKey and write its output to an arbitrary memory location. [CVE-2015-5736] The vulnerability lies in "Fortishield.sys", which is a minifilter filesystem driver that hooks filesystem operations. IOCTL 0x220024 and 0x220028 both allow establishing callbacks that will be called during any IRP_MJ_WRITE and IRP_MJ_SET_INFORMATION, respectively. All of these drivers expose an API to manage processes and the Windows registry. For instance, the IOCTL 0x2220c8 of the "mdareXX_XX.sys" driver returns a full privileged handle to a given process PID. This same function is replicated inside "Fortishield.sys". 8. Report Timeline 2015-06-25: Core Security notified Fortinet of the vulnerabilities. Publication date set for July 27th, 2015. 2015-06-30: Fortinet replied that they received Core Security's email and that they would like to receive the draft version of the advisory. 2015-07-01: Core Security sent Fortinet the draft version of the advisory and requested a tentative schedule for releasing the updates. 2015-07-01: Fortinet replied that they received the draft version of the advisory and that they would review it. 2015-07-15: Core Security requested an update from Fortinet regarding the reported vulnerabilities and a tentative schedule. 2015-07-19: Fortinet replied and confirmed the reported bugs, but stated that they were only able to trigger them with administrative privileges. They requested a PoC from Core Security. 2015-07-20: Core Security replied, explaining to Fortinet that they were able to trigger the vulnerabilities as a non-privileged user. They sent Fortinet a PoC code that opens a handle with read/write permissions to LSASS process and then uses it to allocate memory in its virtual address space. 2015-07-20: Fortinet replied that they would review the PoC. 2015-07-20: Fortinet asked if Core Security researchers could review an interim build when available. 2015-07-21: Core Security confirmed that they would be willing to review an interim build when available. 2015-08-03: Core Security requested an update from Fortinet regarding the availability of the interim build, and asked if there was a specific date Fortinet was planning to release the fix. 2015-08-04: Fortinet replied that their current release date was August 17. 2015-08-05: Fortinet updated the schedule, explaining that the interim build wouldn't include the MDARE fixes therefore delaying the release until the end of August. 2015-08-07: Core Security asked Fortinet if the interim build was going to be published by Fortinet, because if so, that would force Core Security to publish their findings as well. If that wasn't the case, Core Security recommended publishing everything together later that month. 2015-08-07: Fortinet replied that the interim build was private and therefore there wasn't a need to publish ahead of schedule. 2015-08-10: Fortinet sent Core Security a link to download the interim build and requested feedback. 2015-08-10: Core Security replied that they received and downloaded the interim build and would send feedback. Additionally, Core Security requested an updated ETA. 2015-08-18: Core Security requested the specific date Fortinet would release the patched version of their product so they could schedule their security advisory publication accordingly. 2015-08-20: Core Security again requested for a specific date for the publication of the updates and informed Fortinet them that if they didn't receive and answer in the following days they would be forced to schedule the advisory publication. 2015-08-20: Fortinet replied that the scheduled release date for the updated version of FortiClient was August 31. They asked if they had an opportunity to review the interim build andif they had any feedback. 2015-08-24: Core Security replied that they were able to review the interim build and that they could confirm that those bugs were no longer exploitable.Core Security requested and updated ETA of the updated version. 2015-08-24: Fortinet replied that the scheduled release seemed to be confirmed and that the estimated time of availability would be roughly 5 p.m. Pacific Time. 9. References [1] http://www.forticlient.com/. [2] http://docs.fortinet.com/d/forticlient-5.2.4-windows-release-notes.pdf. 10. About CoreLabs CoreLabs, the research center of Core Security, is charged with anticipating the future needs and requirements for information security technologies. We conduct our research in several important areas of computer security including system vulnerabilities, cyber attack planning and simulation, source code auditing, and cryptography. Our results include problem formalization, identification of vulnerabilities, novel solutions and prototypes for new technologies. CoreLabs regularly publishes security advisories, technical papers, project information and shared software tools for public use at: http://corelabs.coresecurity.com. 11. About Core Security Core Security enables organizations to get ahead of threats with security test and measurement solutions that continuously identify and demonstrate real-world exposures to their most critical assets. Our customers gain real visibility into their security standing, real validation of their security controls, and real metrics to more effectively secure their organizations. Core Security's software solutions build on over a decade of trusted research and leading threat expertise from the company's Security Consulting Services, CoreLabs and Engineering groups. Core Security can be reached at +1 (617) 399-6980 or on the Web at: http://www.coresecurity.com. 12. Disclaimer The contents of this advisory are copyright (c) 2014 Core Security and (c) 2014 CoreLabs, and are licensed under a Creative Commons Attribution Non-Commercial Share-Alike 3.0 (United States) License: http://creativecommons.org/licenses/by-nc-sa/3.0/us/ 13. PGP/GPG Keys This advisory has been signed with the GPG key of Core Security advisories team, which is available for download at http://www.coresecurity.com/files/attachments/core_security_advisories.asc

Trust: 2.16

sources: NVD: CVE-2015-5736 // JVNDB: JVNDB-2015-004585 // BID: 76542 // VULHUB: VHN-83697 // VULMON: CVE-2015-5736 // PACKETSTORM: 133398

AFFECTED PRODUCTS

vendor:fortinetmodel:forticlientscope:lteversion:5.2.3

Trust: 1.0

vendor:fortinetmodel:forticlientscope:ltversion:5.2.4

Trust: 0.8

vendor:fortinetmodel:forticlientscope:eqversion:5.2.3

Trust: 0.6

vendor:fortinetmodel:forticlientscope:eqversion:5.2.3.633

Trust: 0.3

vendor:fortinetmodel:forticlientscope:neversion:5.2.4.0650

Trust: 0.3

sources: BID: 76542 // JVNDB: JVNDB-2015-004585 // CNNVD: CNNVD-201509-021 // NVD: CVE-2015-5736

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2015-5736
value: HIGH

Trust: 1.0

NVD: CVE-2015-5736
value: HIGH

Trust: 0.8

CNNVD: CNNVD-201509-021
value: HIGH

Trust: 0.6

VULHUB: VHN-83697
value: HIGH

Trust: 0.1

VULMON: CVE-2015-5736
value: HIGH

Trust: 0.1

nvd@nist.gov: CVE-2015-5736
severity: HIGH
baseScore: 7.2
vectorString: AV:L/AC:L/AU:N/C:C/I:C/A:C
accessVector: LOCAL
accessComplexity: LOW
authentication: NONE
confidentialityImpact: COMPLETE
integrityImpact: COMPLETE
availabilityImpact: COMPLETE
exploitabilityScore: 3.9
impactScore: 10.0
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.9

VULHUB: VHN-83697
severity: HIGH
baseScore: 7.2
vectorString: AV:L/AC:L/AU:N/C:C/I:C/A:C
accessVector: LOCAL
accessComplexity: LOW
authentication: NONE
confidentialityImpact: COMPLETE
integrityImpact: COMPLETE
availabilityImpact: COMPLETE
exploitabilityScore: 3.9
impactScore: 10.0
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.1

sources: VULHUB: VHN-83697 // VULMON: CVE-2015-5736 // JVNDB: JVNDB-2015-004585 // CNNVD: CNNVD-201509-021 // NVD: CVE-2015-5736

PROBLEMTYPE DATA

problemtype:CWE-264

Trust: 1.9

sources: VULHUB: VHN-83697 // JVNDB: JVNDB-2015-004585 // NVD: CVE-2015-5736

THREAT TYPE

local

Trust: 0.9

sources: BID: 76542 // CNNVD: CNNVD-201509-021

TYPE

permissions and access control

Trust: 0.6

sources: CNNVD: CNNVD-201509-021

CONFIGURATIONS

sources: JVNDB: JVNDB-2015-004585

EXPLOIT AVAILABILITY

sources: VULHUB: VHN-83697 // VULMON: CVE-2015-5736

PATCH

title:Mulitple Vulnerabilities in FortiClienturl:http://www.fortiguard.com/advisory/mulitple-vulnerabilities-in-forticlient

Trust: 0.8

title:Fortinet FortiClient Fixes for permission permissions and access control vulnerabilitiesurl:http://www.cnnvd.org.cn/web/xxk/bdxqById.tag?id=61028

Trust: 0.6

title: - url:https://github.com/Ministrex/osee

Trust: 0.1

title:OSEEurl:https://github.com/gscamelo/OSEE

Trust: 0.1

title:IT-Ourl:https://github.com/buddyeatsbugs/IT-O

Trust: 0.1

title:EXP-401-Preparationurl:https://github.com/Exploitables/EXP-401-Preparation

Trust: 0.1

sources: VULMON: CVE-2015-5736 // JVNDB: JVNDB-2015-004585 // CNNVD: CNNVD-201509-021

EXTERNAL IDS

db:NVDid:CVE-2015-5736

Trust: 3.0

db:SECTRACKid:1033439

Trust: 1.8

db:PACKETSTORMid:133398

Trust: 1.3

db:EXPLOIT-DBid:41722

Trust: 1.2

db:EXPLOIT-DBid:45149

Trust: 1.2

db:EXPLOIT-DBid:41721

Trust: 1.2

db:JVNDBid:JVNDB-2015-004585

Trust: 0.8

db:CNNVDid:CNNVD-201509-021

Trust: 0.7

db:BIDid:76542

Trust: 0.4

db:VULHUBid:VHN-83697

Trust: 0.1

db:VULMONid:CVE-2015-5736

Trust: 0.1

sources: VULHUB: VHN-83697 // VULMON: CVE-2015-5736 // BID: 76542 // JVNDB: JVNDB-2015-004585 // PACKETSTORM: 133398 // CNNVD: CNNVD-201509-021 // NVD: CVE-2015-5736

REFERENCES

url:http://www.coresecurity.com/advisories/forticlient-antivirus-multiple-vulnerabilities

Trust: 2.2

url:http://www.fortiguard.com/advisory/mulitple-vulnerabilities-in-forticlient

Trust: 1.8

url:http://www.securitytracker.com/id/1033439

Trust: 1.8

url:https://www.exploit-db.com/exploits/41722/

Trust: 1.3

url:http://www.securityfocus.com/archive/1/536369/100/0/threaded

Trust: 1.2

url:http://fortiguard.com/advisory/mulitple-vulnerabilities-in-forticlient

Trust: 1.2

url:https://www.exploit-db.com/exploits/41721/

Trust: 1.2

url:https://www.exploit-db.com/exploits/45149/

Trust: 1.2

url:http://seclists.org/fulldisclosure/2015/sep/0

Trust: 1.2

url:http://packetstormsecurity.com/files/133398/forticlient-antivirus-information-exposure-access-control.html

Trust: 1.2

url:http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2015-5736

Trust: 0.8

url:http://web.nvd.nist.gov/view/vuln/detail?vulnid=cve-2015-5736

Trust: 0.8

url:http://www.forticlient.com/

Trust: 0.3

url:http://www.fortinet.com/

Trust: 0.3

url:https://cwe.mitre.org/data/definitions/264.html

Trust: 0.1

url:https://nvd.nist.gov

Trust: 0.1

url:https://github.com/gscamelo/osee

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2015-4077

Trust: 0.1

url:http://www.coresecurity.com/files/attachments/core_security_advisories.asc.

Trust: 0.1

url:http://www.forticlient.com/.

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2015-5735

Trust: 0.1

url:http://www.coresecurity.com.

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2015-5737

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2015-5736

Trust: 0.1

url:http://creativecommons.org/licenses/by-nc-sa/3.0/us/

Trust: 0.1

url:http://corelabs.coresecurity.com.

Trust: 0.1

url:http://docs.fortinet.com/d/forticlient-5.2.4-windows-release-notes.pdf.

Trust: 0.1

sources: VULHUB: VHN-83697 // VULMON: CVE-2015-5736 // BID: 76542 // JVNDB: JVNDB-2015-004585 // PACKETSTORM: 133398 // CNNVD: CNNVD-201509-021 // NVD: CVE-2015-5736

CREDITS

Enrique Nissim

Trust: 0.3

sources: BID: 76542

SOURCES

db:VULHUBid:VHN-83697
db:VULMONid:CVE-2015-5736
db:BIDid:76542
db:JVNDBid:JVNDB-2015-004585
db:PACKETSTORMid:133398
db:CNNVDid:CNNVD-201509-021
db:NVDid:CVE-2015-5736

LAST UPDATE DATE

2024-11-23T21:43:56.165000+00:00


SOURCES UPDATE DATE

db:VULHUBid:VHN-83697date:2018-10-09T00:00:00
db:VULMONid:CVE-2015-5736date:2018-10-09T00:00:00
db:BIDid:76542date:2015-09-01T00:00:00
db:JVNDBid:JVNDB-2015-004585date:2015-09-07T00:00:00
db:CNNVDid:CNNVD-201509-021date:2015-09-10T00:00:00
db:NVDid:CVE-2015-5736date:2024-11-21T02:33:44.527

SOURCES RELEASE DATE

db:VULHUBid:VHN-83697date:2015-09-03T00:00:00
db:VULMONid:CVE-2015-5736date:2015-09-03T00:00:00
db:BIDid:76542date:2015-09-01T00:00:00
db:JVNDBid:JVNDB-2015-004585date:2015-09-07T00:00:00
db:PACKETSTORMid:133398date:2015-09-02T06:55:53
db:CNNVDid:CNNVD-201509-021date:2015-09-07T00:00:00
db:NVDid:CVE-2015-5736date:2015-09-03T14:59:06.647