{"id":5307,"date":"2021-09-25T03:02:41","date_gmt":"2021-09-25T03:02:41","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=5307"},"modified":"2023-02-02T20:42:24","modified_gmt":"2023-02-02T20:42:24","slug":"password-synced-to-remote-computer-without-connectivity-to-domain-controller-after-password-change","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/password-synced-to-remote-computer-without-connectivity-to-domain-controller-after-password-change","title":{"rendered":"Password Synced to Remote computer without connectivity to Domain Controller after Password Change"},"content":{"rendered":"\n<p>Recently had a customer be able to change passwords from Exchange webmail and for the password to sync back to their local computer without having direct access to the domain controller on a LAN or via VPN.<\/p>\n\n\n\n<p>To trace this 365 support were able to use the below script from&nbsp;<a href=\"https:\/\/docs.microsoft.com\/lt-lt\/azure\/active-directory\/devices\/troubleshoot-hybrid-join-windows-current\">here<\/a><\/p>\n\n\n\n<p>Download the file Auth.zip from&nbsp;<a href=\"https:\/\/protect-au.mimecast.com\/s\/iyR5CD1jz2CR3r2FkidIQ?domain=nam06.safelinks.protection.outlook.com\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/cesdiagtools.blob.core.windows.net\/windows\/Auth.zip<\/a><\/p>\n\n\n\n<p>Logs as shows :&nbsp;<\/p>\n\n\n\n<p>To obtain the TGT we starting locating a DC and fail to find one standard&nbsp;<a href=\"https:\/\/protect-au.mimecast.com\/s\/TKU9CxnMPBh2xq6u82IWF?domain=social.technet.microsoft.com\" target=\"_blank\" rel=\"noreferrer noopener\">Dclocator<\/a>&nbsp;(expected as no VPN or connection to Domain Controller)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1561\" height=\"127\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8f1f03749.png\" alt=\"\" class=\"wp-image-5311 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8f1f03749.png 1561w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8f1f03749-300x24.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8f1f03749-1024x83.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8f1f03749-768x62.png 768w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8f1f03749-1536x125.png 1536w\" sizes=\"auto, (max-width: 1561px) 100vw, 1561px\" \/><\/figure>\n\n\n\n<p>Now we see a call to&nbsp;<a href=\"https:\/\/protect-au.mimecast.com\/s\/bpM_CyoN0DIlLmvuM-w7Q?domain=docs.microsoft.com\" target=\"_blank\" rel=\"noreferrer noopener\">KDCProxy,<\/a>&nbsp;this is what is responsible for getting you authenticated without having a line of site to your DC.<\/p>\n\n\n\n<p>Line two of this tells you the KDC proxy gateway is connecting too<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1477\" height=\"59\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8e0ceaf7a.png\" alt=\"\" class=\"wp-image-5308 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8e0ceaf7a.png 1477w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8e0ceaf7a-300x12.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8e0ceaf7a-1024x41.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8e0ceaf7a-768x31.png 768w\" sizes=\"auto, (max-width: 1477px) 100vw, 1477px\" \/><\/figure>\n\n\n\n<p>This is what we see when the correct password is entered.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1873\" height=\"183\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8e6f18904.png\" alt=\"\" class=\"wp-image-5309 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8e6f18904.png 1873w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8e6f18904-300x29.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8e6f18904-1024x100.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8e6f18904-768x75.png 768w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/09\/img_614e8e6f18904-1536x150.png 1536w\" sizes=\"auto, (max-width: 1873px) 100vw, 1873px\" \/><\/figure>\n\n\n\n<p>The question in my mind , was how was it able to get KDC proxy gateway address? Its a FQDB used by the RDP Gateway , and the below found my answer<\/p>\n\n\n\n<p>&#8220;This is called the KDC Proxy Service (KPS), and it was introduced as a supporting service for Direct Access and Remote Desktop Gateway deployments&#8221;<\/p>\n\n\n\n<p>KDC Proxy is installed with 2016 Server Remote Desktop Gateway role , so if you have a Terminal Server Enviroment listing on Port 443 which it needs for the Gateway you have this running!<\/p>\n\n\n\n<p>But I have never seen this elsewhere and they have RDP Gateway roles?<\/p>\n\n\n\n<p>This site gives a nice rundown of it all&nbsp;<a href=\"https:\/\/syfuhs.net\/kdc-proxy-for-remote-access\">KDC Proxy for Remote Access (syfuhs.net)<\/a>&nbsp;&#8211; There&#8217;s a little known feature in Windows called the KDC Proxy that lets clients communicate with KDC servers over an HTTPS channel instead of TCP.<\/p>\n\n\n\n<p>By default , the Keys\u00a0<strong>HttpsClientAuth<\/strong>\u00a0and\u00a0<strong>DisallowUnprotectedPasswordAuth\u00a0<\/strong>do no exist in\u00a0 HKLM\\SYSTEM\\CurrentControlSet\\Services\\KPSSVC\\Settings , however this setup they did\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">HttpsClientAuth : Dword 0 ( Disable client authentication  ) \nDisallowUnprotectedPasswordAuth  : Dword 0 ( Enable password authentication ) <\/code><\/pre>\n\n\n\n<p>Which enabled this Password reset without connection to Domain Controller ( When\u00a0<code>DisallowUnprotectedPasswordAuth<\/code>\u00a0is set to\u00a0<code>0<\/code>\u00a0the KDC proxy will allow the user to retrieve a\u00a0<code>krbtgt<\/code>\u00a0using username and password. ) <\/p>\n\n\n\n<p>It must be secure to Enable this without Password Auth and Windows Hello instead as you open yourself up for a Brute Force attack ( as the Logins are not restricted and count towards lockout polices )\u00a0<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>You need to make sure the user authenticating is using the primary domain name not an Alternate UPN<br><br>Failed to locate a domain controller in domain xxxxxxx.com.au with locator flags 0x601: error code 0x54B.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/02\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"317\" height=\"86\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/02\/image-3.png\" alt=\"\" class=\"wp-image-6642 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/02\/image-3.png 317w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2023\/02\/image-3-300x81.png 300w\" sizes=\"auto, (max-width: 317px) 100vw, 317px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Recently had a customer be able to change passwords from Exchange webmail and for the password to sync back to their local computer without having direct access [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3590,1677,3591,3585,3812,3589,3586,721,3587,3588,1398,1351],"class_list":["post-5307","post","type-post","status-publish","format-standard","hentry","category-research","tag-disallowunprotectedpasswordauth","tag-domain-controller","tag-httpsclientauth","tag-kdc-proxy","tag-kerberos","tag-kps","tag-line-of-sight","tag-password","tag-password-change","tag-password-sync","tag-sync","tag-vpn"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=5307"}],"version-history":[{"count":5,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5307\/revisions"}],"predecessor-version":[{"id":6643,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5307\/revisions\/6643"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=5307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=5307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=5307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}