{"id":21350,"date":"2015-11-17T16:17:19","date_gmt":"2015-11-17T09:17:19","guid":{"rendered":"http:\/\/deepquest.code511.com\/blog\/2015\/11\/microsoft-windows-8-1-ahcache-sysntapphelpcachecontrol-privilege-escalation\/"},"modified":"2015-11-17T16:17:19","modified_gmt":"2015-11-17T09:17:19","slug":"microsoft-windows-8-1-ahcache-sysntapphelpcachecontrol-privilege-escalation","status":"publish","type":"post","link":"https:\/\/deepquest.code511.com\/blog\/2015\/11\/microsoft-windows-8-1-ahcache-sysntapphelpcachecontrol-privilege-escalation\/","title":{"rendered":"Microsoft Windows 8.1 Ahcache.sys\/NtApphelpCacheControl Privilege Escalation"},"content":{"rendered":"<p>On Windows 8.1 Update 32\/64 bit, 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&#8217;t correctly check the impersonation token of the caller to determine if the user is an administrator. It reads the caller&#8217;s impersonation token using PsReferenceImpersonationToken and then does a comparison between the user SID in the token to LocalSystem&#8217;s SID. It doesn&#8217;t check the impersonation level of the token so it&#8217;s possible to get an identify token on your thread from a local system process and bypass this check.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On Windows 8.1 Update 32\/64 bit, 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&#8230;<\/p>\n","protected":false},"author":439,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[43],"tags":[],"class_list":["post-21350","post","type-post","status-publish","format-standard","hentry","category-exploit"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4bBYZ-5ym","_links":{"self":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/21350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/users\/439"}],"replies":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/comments?post=21350"}],"version-history":[{"count":0,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/21350\/revisions"}],"wp:attachment":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/media?parent=21350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/categories?post=21350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/tags?post=21350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}