what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

ESET Windows Products 7.0 Privilege Escalation

ESET Windows Products 7.0 Privilege Escalation
Posted Aug 20, 2014
Authored by Kyriakos Economou

ESET Windows Products versions 5.0 through 7.0 (Firewall Module Build 1183 (20140214) and earlier) suffer from a privilege escalation vulnerability.

tags | advisory
systems | windows
advisories | CVE-2014-4973
SHA-256 | dece2baa665e8eaa6eefd41fcb60bffa50108ef2c1df166fbc98dc57cbe85529

ESET Windows Products 7.0 Privilege Escalation

Change Mirror Download
Vulnerability title: Privilege Escalation in ESET Windows Products
CVE: CVE-2014-4973
Vendor: ESET
Product: ESET Windows Products
Affected version: v5.0 - 7.0 (Firewall Module Build 1183 (20140214) and
earlier)
Fixed version: v6 - v7 (Firewall Module Build 1212 (20140609))
Reported by: Kyriakos Economou

Details:

Versions 5.0 – 7.0 of ESET Smart Security and ESET Endpoint Security products for Windows XP OS allow a low privileged user to execute code as SYSTEM by exploiting a vulnerability in the ESET Personal Firewall NDIS filter (EpFwNdis.sys) kernel mode driver also mentioned as Personal Firewall module: Build 1183 (20140214) and prior. This is a ‘trusted value vulnerability’ that can be triggered through a specific IOCTL with a specifically crafted buffer, to force the driver to validate an improper IOCTL.

EpFwNdis.sys registers NDIS!ndisDeviceControlIrpHandler as the dispatch function for the IRP_MJ_DEVICE_CONTROL IRP function code.

Through IOCTL 0x830020CC we arrive at EpFwNdis+0x43f6 where the trusted value vulnerability is triggered:

*ba2ac41c 3b4d08 cmp ecx,dword ptr [ebp+8] <--- we can control the value at [ebp+8] from userland

Matching ECX value means that we can keep controlling the execution and force it to validate some other parameters that we send through the IOCTL input buffer.
Getting the proper value can be achieved either by triggering a kernel memory leak vulnerability present in the same driver module (version agnostic), or by getting its base address and send the correct offset through the IOCTL. The magic value is stored inside the driver image itself so by knowing the base address we can calculate the RVA for it.

Finally we will arrive here:

wanarp!WanNdisReceiveComplete <--- function name in wanarp.sys
call dword ptr [wanarp!g_pfnIpRcvComplete (ba29dfb4)] <---- 0x00000000

As NULL pages can be allocated in Windows XP, we can put to 0×00000000 a trampoline to our payload and execute code with kernel privileges.

Impact:

This vulnerability could allow a malicious attacker to gain Administrator privileges on a system from a user account.

Exploit:

The proof of concept exploit is available.

Further details at:
https://www.portcullis-security.com/security-research-and-downloads/security-advisories/cve-2014-4973/


Copyright:
Copyright (c) Portcullis Computer Security Limited 2014, All rights
reserved worldwide. Permission is hereby granted for the electronic
redistribution of this information. It is not to be edited or altered in
any way without the express written consent of Portcullis Computer
Security Limited.

Disclaimer:
The information herein contained may change without notice. Use of this
information constitutes acceptance for use in an AS IS condition. There
are NO warranties, implied or otherwise, with regard to this information
or its use. Any use of this information is at the user's risk. In no
event shall the author/distributor (Portcullis Computer Security
Limited) be held liable for any damages whatsoever arising out of or in
connection with the use or spread of this information.
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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