A Deep Dive into the GetProcessHandleFromHwnd API
GetProcessHandleFromHwnd has changed substantially since Vista. It started as a user-mode windows hook in oleacc.dll that duplicated a limited process handle back to the caller. In Windows 10 1803 it became the Win32k kernel call NtUserGetWindowProcessHandle, which opened processes with KernelMode access and so skipped access checks entirely. That let UI Access holders, and any caller at equal or higher integrity, open sandboxed or protected processes that own a window (CVE-2023-41772). The partial fix and the Windows 11 24H2 changes (process protection in UIPI checks, a UIPIAlwaysOn feature flag, and a ResponsiblePid path requiring UI Access) close some gaps but leave quirks such as PPL App processes being able to open one another.
Related posts
- Bypassing Administrator Protection by Abusing UI Access
Google Project Zero hardMaster
UI Access, the token flag Windows Vista added so accessibility tools could bypass User Interface Privacy Isolation, silently gives a limited user a High-integrity process. From there any administrator process with a window can be compromised, which makes UI Access the root cause of 5 of 9 Administrator Protection bypasses. Ways to get code running in such a process include defeating appinfo.dll's secure-directory check with NTFS named streams, writable directories like Tasks_Migrated, or MSIX installs into WindowsApps. Others repurpose existing uiAccess-signed binaries or abuse the limited user's shared profile, registry and drive mappings. The post also explains how Microsoft is now fixing these issues.
- Improved Process Isolation in Firefox 100
Mozilla Hacks hardMasterFirefox 100 enables Win32k Lockdown on Windows, using PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY to block web content processes from calling the historically exploitable win32k.sys kernel APIs. Getting there meant moving every graphics and widget operation out of the content process. Painting moved to WebRender in the GPU process, Canvas 2D is recorded and replayed over IPC, and WebGL gained a validating child/parent API. Form controls are now drawn by Firefox itself instead of as native widgets, complex-script line breaking is forwarded over IPC with caching, and a fix stops injected third-party DLLs from breaking COM. Skipping those DLLs also made opening new tabs about 15% faster, and equivalent lockdowns of WindowServer on macOS and X11 on Linux sped process startup by 30-70% on Mac.
- A 0-click exploit chain for the Pixel 10: When a Door Closes, a Window Opens
Google Project Zero hardMaster
Project Zero ported its Pixel 9 zero-click chain to the Pixel 10 by re-offsetting the Dolby UDC exploit (CVE-2025-54957), overwriting dap_cpdp_init instead of __stack_chk_fail because RET PAC replaced stack protectors. It then found a new local privilege escalation in the Tensor G5 VPU driver (/dev/vpu), reachable from the mediacodec context. That driver's mmap handler calls remap_pfn_range using the caller's VMA size rather than the MMIO register region size, letting userspace map the fixed-address kernel image read-write; arbitrary kernel read/write took five lines of code. The bug was rated High and patched in 71 days. The authors argue the same driver developers still lack basic security review despite the earlier BigWave reports.
- VirtualBox Process Hardening on Windows 2026 Edition: What’s a Single Bit Between Friends?
Google Project Zero hardMaster
The .NET Framework v4 loader falls back from an image-section mapping (SEC_IMAGE) to a plain data mapping (FlatImageLayout) whenever NtCreateSection fails with STATUS_INVALID_IMAGE_FORMAT, so assemblies can execute without passing image-based DLL verification. In VirtualBox's hardened processes (CVE-2026-87268), the NtCreateSection hook returned exactly that status for any AnyCPU assembly, because the 32-bit x86 PE contains executable code and triggers VERR_LDR_ARCH_MISMATCH. Combined with COM hijacking, this loaded arbitrary code into the protected process. The same trick reaches Windows code integrity (WDAC, protected processes) by clearing a single bit, IMAGE_FILE_EXECUTABLE_IMAGE: the kernel then refuses to map the file as an image but .NET ignores the flag, so the attack is blocked only when a WLDP check finds UMCI or Dynamic Code Security enforced.
- Zed Weekly: #29
Zed mediumAdeptZed's port to GPUI 2 is nearing daily usability, and the team is focused on frame-rendering performance measured by holding tab-switch at 60Hz key repeat. Because every element is a boxed trait object, they replaced malloc with a custom thread-local bump arena that enforces safety dynamically instead of via lifetimes, and changed `Element::paint` to take `&mut self` to avoid heap-to-stack copies. The target is full-window redraws under 4ms on an M1, with view caching planned next. Other updates cover a better VS Code theme importer, focus handlers moved to run after each frame draw to fix a split-pane focus bug, and a port of the feedback UI.