/?pid=14886

Updated:03:08 PM EST Feb 06


this is ggmania.com subsite Serious Security Flaw in MS Windows 8.1 - TechAmok

Serious Security Flaw in MS Windows 8.1 - [security]
10:27 AM EST - Jan,02 2015 - post a comment

This security issue exists on a up2date ms win 8.1 and was known to ms since september, yet still unpatched.
On Windows 8.1 update the system call NtApphelpCacheControl (the code is actually in ahcache.sys) allows application compatibility data to be cached for quick reuse when new processes are created. A normal user can query the cache but cannot add new cached entries as the operation is restricted to administrators. This is checked in the function AhcVerifyAdminContext.

This function has a vulnerability where it doesn't correctly check the impersonation token of the caller to determine if the user is an administrator. It reads the caller's impersonation token using PsReferenceImpersonationToken and then does a comparison between the user SID in the token to LocalSystem's SID. It doesn't check the impersonation level of the token so it's possible to get an identify token on your thread from a local system process and bypass this check. For this purpose the PoC abuses the BITS service and COM to get the impersonation token but there are probably other ways.

It is just then a case of finding a way to exploit the vulnerability. In the PoC a cache entry is made for an UAC auto-elevate executable (say ComputerDefaults.exe) and sets up the cache to point to the app compat entry for regsvr32 which forces a RedirectExe shim to reload regsvr32.exe. However any executable could be used, the trick would be finding a suitable pre-existing app compat configuration to abuse.

It's unclear if Windows 7 is vulnerable as the code path for update has a TCB privilege check on it (although it looks like depending on the flags this might be bypassable). No effort has been made to verify it on Windows 7. NOTE: This is not a bug in UAC, it is just using UAC auto elevation for demonstration purposes.

The PoC has been tested on Windows 8.1 update, both 32 bit and 64 bit versions. I'd recommend running on 32 bit just to be sure. To verify perform the following steps:

1) Put the AppCompatCache.exe and Testdll.dll on disk
2) Ensure that UAC is enabled, the current user is a split-token admin and the UAC setting is the default (no prompt for specific executables).
3) Execute AppCompatCache from the command prompt with the command line "AppCompatCache.exe c:\windows\system32\ComputerDefaults.exe testdll.dll".
4) If successful then the calculator should appear running as an administrator. If it doesn't work first time (and you get the ComputerDefaults program) re-run the exploit from 3, there seems to be a caching/timing issue sometimes on first run.

This bug is subject to a 90 day disclosure deadline. If 90 days elapse without a broadly available patch, then the bug report will automatically become visible to the public.


Add your comment (free registrationrequired)

Short overview of recent news articles

Feb,06 2026 RenEngine Loader and HijackLoader Duo Infects Over 400,000 Gamers in
Feb,06 2026 EpsteIn Tool: Check If Your LinkedIn Contacts Appear in 3.5 Million
Feb,05 2026 Bitcoin's $64,000 Reality vs. $87K+ Production Costs Sparks
Feb,05 2026 Crypto Analyst Issues Urgent 'Final Warning' on XRP: Claims
Feb,04 2026 AI-Powered Breach: Hacker Claims AWS Kingdom in Under 10 Minutes
Feb,04 2026 Microsoft Axes Standalone SharePoint and OneDrive Plans in Push to
Feb,04 2026 Nvidia's $100 billion OpenAI deal has seemingly vanished
Feb,04 2026 The Best 14" Gaming Laptops Right Now
Feb,04 2026 The Solution to the RAM Crisis is... DDR4???
Feb,03 2026 Google Meet can now join Microsoft Teams calls
Feb,03 2026 The Devil Wears Prada 2 - Official Trailer (2026) Meryl Streep, Anne
Feb,02 2026 *EPSTEIN HAD THE SEC SUE RIPPLE/XRP - HOLY SH*T | Gensler Worked For
Feb,02 2026 Mozilla Firefox is making it super easy to turn off its generative
Feb,01 2026 Windows 11 quietly gets a new security feature to protect system
Feb,01 2026 WARNING: TRUMP & RIPPLE/XRP SECRET AGREEMENT AT DAVOS
Feb,01 2026 China's new RAM company, CXMT, is selling RAM at $138
Feb,01 2026 Windows keeps a permanent record of every USB device you've ever
Feb,01 2026 Intel Is BACK - Panther Lake Changes Everything
Jan,31 2026 NVIDIA Releases GeForce Security Update Driver 582.28 for Legacy
Jan,31 2026 AMD 'Zen 6' CCD Packs 12 Cores, 48 MB L3 Cache
Jan,31 2026 Microsoft Set to Disable Legacy NTLM Authentication by Default in
Jan,30 2026 NVIDIA GeForce 591.86 WHQL Driver
Jan,30 2026 iOS 26.3-Important New iPhone Location Privacy Feature Coming Soon
Jan,29 2026 I Made the Ultimate Steam Machine Before Valve
Jan,29 2026 Wardriver - Official Trailer (2026) Dane DeHaan, Sasha Calle,
Jan,28 2026 Apple Intros Improved AirTag
Jan,28 2026 US Version of TikTok off to Bumpy Start; Competitors Surge
Jan,28 2026 Google Chrome no longer needs you, as Gemini takes the driving seat
Jan,27 2026 Premium Subscriptions Coming to Facebook, Instagram, WhatsApp
Jan,25 2026 Windows 11 Best For Gaming? Windows 11 25H2 vs. Windows 10
Jan,24 2026 Microsoft Says Uninstall This Windows Update Immediately (KB5077744
Jan,22 2026 Xbox Developer Direct Livestream 2026 | Fable, Forza Horizon 6,
Jan,22 2026 Iridium Begins Testing its own Satellite Service for Phones
Jan,22 2026 AMD Releases Adrenalin Edition 26.1.1 WHQL Drivers
Jan,18 2026 AI in 2050
Jan,17 2026 iOS 26.2 Fixes Major Security Flaws
Jan,17 2026 Google Links its AI to Your Gmail and Photos for "Personal
Jan,17 2026 Fastest Koenigsegg v Fastest Bugatti: DRAG RACE
Jan,17 2026 Creating a 48GB NVIDIA RTX 4090 GPU
Jan,14 2026 CES was frickin weird, guys
>> News Archive <<

TechAmok - Privacy Policy        loading time:0.02secs