25.03.2017 Views

LPE vulnerabilities exploitation on Windows 10 Anniversary Update

eJwXM6v

eJwXM6v

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Arbitrary write via USER objects<br />

• Arbitrary write<br />

1. We can use API SetMenuItemInfo(MIIM_DATA) for writing c<strong>on</strong>tent of<br />

arbitrary address.<br />

2. MIIM_DATA allows to write DWORD64 <strong>on</strong> x64 system.<br />

3. SetMenuItemInfo writes tagITEM.dwItemData field.<br />

4. If we call “write” from wow64 process, we need to call service<br />

NtUserThunkedMenuItemInfo directly, because wow64 stub doesn’t<br />

allow to use x64 MENUITEMINFOW structure and as the result we can’t<br />

write 64 bit field (<strong>on</strong>ly 32-bit <strong>on</strong>e).<br />

In both cases (read and write) we need to calculate arbitrary address<br />

according to tagITEM field offset.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!