25.03.2017 Views

LPE vulnerabilities exploitation on Windows 10 Anniversary Update

eJwXM6v

eJwXM6v

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Spray approach (tagCLS.lpszMenuName)<br />

1. Allocate tagCLS structure by calling RegisterClass with c<strong>on</strong>trolled<br />

lpszMenuName.<br />

2. Allocate Window for class (as we d<strong>on</strong>’t want to scan desktop heap) and<br />

get addresses of allocated tagCLS.lpszMenuName.<br />

3. DestroyWindow and free tagCLS by UnregisterClass.<br />

4. Allocate SURFOBJ (Bitmap)*.<br />

5. Now, we can expect that SURFOBJ will be allocated <strong>on</strong> place of<br />

lpszMenuName.<br />

*As there is lookaside list for previous GDI objects allocati<strong>on</strong>s, we need to fill<br />

lookaside before trying to allocated bitmap <strong>on</strong> freed space.

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

Saved successfully!

Ooh no, something went wrong!