Skip to content
Misconfiguration Write-up Beginner

How I Logged in with an Expired Azure AD Password

A user found that after their Azure AD password expired, they could still sign in to company services such as a VPN client using Windows Hello for Business, because that flow relies on a cached Primary Refresh Token and keys rather than the password. The author frames this as expected behaviour rather than a vulnerability, noting that without Conditional Access reauthentication policies the expiry check is simply never triggered.

medium.com

Published on medium.com

As someone just starting out in cybersecurity, I try to learn from every situation I come across. And recently, I ran into a weird — but fascinating — issue:

Amrit Sinha, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the design of key-based authentication: Windows Hello signs in with a Primary Refresh Token and keys rather than a password, so Azure AD never evaluates password expiry unless a Conditional Access policy forces reauthentication.

Impact

A user whose password has expired may keep reaching services such as VPN and internal tools through Windows Hello until the token expires or is revoked, unless Conditional Access enforces reauthentication; the author stresses this is not a flaw but a policy gap.

What the attacker needed

Windows Hello for Business enrolled; Valid Primary Refresh Token; No CA reauthentication policy

The fix

It should be fixed by enforcing Conditional Access sign-in frequency policies so that sessions require reauthentication regularly, especially for VPN clients and sensitive internal tools.

How it was found

  1. Let the Azure AD password reach its 60-day expiry without resetting it.
  2. On the following day, sign in to the VPN client using Windows Hello instead of the password.
  3. Observe that authentication succeeds and access is granted despite the expired password.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When you sign in with Windows Hello (a PIN or fingerprint instead of a password), your device proves who you are with a cryptographic key stored in a security chip, not with your password. The cloud service had already handed the device a long-lived pass (a token) earlier, and it keeps accepting that pass. So when the password expired, nothing forced the service to re-check, and access continued.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.