r/sysadmin • Jack of All Trades • 8d ago

FastUnlock : Windows Narrator LockScreen Bypass 0day Vulnerability

Just seen this posting for awareness - MSNightmare/FastUnlock: FastUnlock : Windows Narrator LockScreen Bypass 0day Vulnerability

Update: 🚨🚨🚨Mitigation for deployment is here danrhodes/MSNightmare-FastUnlock-Mitigation🚨🚨🚨

194 Upvotes

67 comments sorted by

18

u/danrhodes1987 Jack of All Trades 8d ago edited 8d ago

🚨🚨🚨Mitigation for deployment is here danrhodes/MSNightmare-FastUnlock-Mitigation🚨🚨🚨

10

u/Unable-Entrance3110 8d ago

This is my mitigation as well. Narrator.exe, added to the list of blocked LOLBINs.

30

u/TheLexikitty 8d ago

That’s…fun, as a visually impaired sec/infra engineer that uses Narrator.

18

u/danrhodes1987 Jack of All Trades 8d ago

Absolutely and in my git article I state that for visually impaired users the mitigation will not be viable.

8

u/TheLexikitty 8d ago edited 8d ago

Absolutely and I appreciate that! 💞 Just thinking of the orgs that are gonna implement this site wide first and ask question later, because it’ll happen. Thanks for the write up!

11

u/primeski 8d ago

So the remediation to this vulnerability is to take away all USB sticks, got it

8

u/danrhodes1987 Jack of All Trades 8d ago

No as you can launch anything you want in the context of the user logged onto the device.

3

u/pablo_kickasso 8d ago

This is the bit that I'm confused about. From what I understand from the vulnerability, you can run programs under the purview of WsiAccount, not necessarily open the user's Bitlocked files.

Or did you test that exact scenario?

2

u/danrhodes1987 Jack of All Trades 8d ago

From what I see of the reported vuln and from testing it allows a person to navigate around what is behind the lock screen as if you were logged in and using the machine via narrator. I see nothing that would stop a person turning off auto play and plugging in a self running usb and or creating a new user account from control panel or windows settings to then login to (providing the logged in user has access to do so).

2

u/tmontney Wizard or Magician, whichever comes first 8d ago

From what I see of the reported vuln and from testing it allows a person to navigate around what is behind the lock screen as if you were logged in and using the machine via narrator.

When Narrator is launched from lock screen, it runs as SYSTEM. So, if you can control hidden dialogs, then it's all about where you can go from there. Worst-case scenario is launching a shell.

2

u/danrhodes1987 Jack of All Trades 8d ago

It doesn't run as SYSTEM anymore, it used to but this was patched a while back. It now runs in the context of the logged on user. This required a user to be logged on to work AFAIK.

3

u/tmontney Wizard or Magician, whichever comes first 8d ago

It now runs in the context of the logged on user.

There won't be a logged in user when the system is rebooted. (Technically speaking, the computer account is the "logged in user".) Either way, I just started Narrator with a user logged in but locked (25H2, November Security update). Still runs as SYSTEM.

Of course, if you're logged in and run the Narrator then it runs in your current context.

2

u/danrhodes1987 Jack of All Trades 8d ago

Using this method? That’s not good news 👎

Even MSNightmare says this shouldn’t work - “interestingly it still has the old code that prevents it from spawning the window if it's running as SYSTEM) Unlike the previous lockscreen bypass bugs I found in the past (by example ZDI-21-1053)”

2

u/tmontney Wizard or Magician, whichever comes first 8d ago

Well, the Narrator launches as SYSTEM regardless, so it makes the impact of methods like these a lot worse. Not much different than the stick keys method.

1

u/danrhodes1987 Jack of All Trades 8d ago

Agreed and it makes this much worse if all you have to do is reboot and run this vuln to get system level access 🤦‍♂️

→ More replies

1

u/cschneegans 6d ago

Can confirm that narrator.exe runs as SYSTEM when launched from the lock screen in Windows 11 26H2 (10.0.26300.9974). Process auditing makes this easy to check, and the Security log will then show this entry:

A new process has been created.

Creator Subject:
 Security ID:            S-1-5-18

Process Information:
 New Process Name:       C:\Windows\System32\Narrator.exe
 Creator Process Name:   C:\Windows\System32\Utilman.exe

S-1-5-18 is the SID of the SYSTEM account, of course.

1

u/pablo_kickasso 8d ago

Understood, and plugging in a USB stick and running something under WsiAccount could definitely be troublesome. I'm not downplaying the issue, but trying to assess the scope.

What I'm trying to work out is the practical blast radius -- if any of the user's data would actually be reachable, or if an attacker can truly gain access to something meaningful.

In other words: assume an attacker can get a local account, physically, in front of the machine. If the original user wasn't an administrator, then the attacker's account would have limited permissions, not worth that much, or at least not immediately.

In an enterprise environment, in particular, chances are the original user already had limited permissions to begin with.

1

u/danrhodes1987 Jack of All Trades 8d ago

When we tested earlier although we weren't able to see such as edge or firefox we were able to navigate around the browsers the user had open prior to locking the machine. They way I see it is you can control the machine as if you were the logged on user just blind via the narrator.

1

u/pablo_kickasso 8d ago

Oh dear. Thanks for the information!

2

u/danrhodes1987 Jack of All Trades 8d ago

Going to do more testing later but I cannot see it being to difficult with this to exfultrate data.

1

u/Dry_Cheetah5160 7d ago

im assuming this is a joke

8

u/sync-centre 8d ago

This feels like an OOB patch coming very soon.

4

u/danrhodes1987 Jack of All Trades 8d ago

Yes I agree.

17

u/intellectual_printer 8d ago

Why not navigate to a .exe already existing in windows and create a new local user ? "Netplwiz" is what I norm type in the search menu(unsure of .exe filename/location)

8

u/Dramatika 8d ago

Honestly easy enough to just pop open cmd for system32 and do a net user add, but that could certainly trigger alerts

2

u/danrhodes1987 Jack of All Trades 8d ago

But 100% possible with this.

10

u/tuxedo_jack BOFH with an Etherkiller and a Cat5-o'-9-Tails 8d ago

That should almost instantly set off any EDR worth its salt.

... so, no doubt, most of them won't do shit.

1

u/jmbpiano 8d ago

Sincere question: do you know if WsiAccount definitely has sufficient permissions to perform a 'net add'?

2

u/menace323 8d ago

I don’t believe it does, it’s a standard user.

But it does put you in place to execute any local priv escalation the system might be vulnerable to.

1

u/BlackV I have opnions 7d ago

Net user can be run from anywhere 0 reason to change to system32 specifically

5

u/RedditACC4Work 8d ago edited 7d ago

Is this mainly an issue for regular microsoft accounts, I've tried on my work laptop as a test, and hitting forgot pin just prompts for my password instead.

Edit: Requires Web Sign in to be enabled and we don't have this enabled.

7

u/danrhodes1987 Jack of All Trades 8d ago

It only affects Intune joined machines by the looks of it.

3

u/RedditACC4Work 8d ago

Hmm interesting, I wanted to see if I could replicate it but since it asked for a password when I said forgot pin, and there was no forgot password I guess we have something in place that prevents it or it's because we're hybrid?

5

u/danrhodes1987 Jack of All Trades 8d ago

If you dont get this type of screen it looks to be fine.

2

u/RedditACC4Work 8d ago

On my machine, no I do not see this, will get my colleagues to try tomorrow to confirm but this is very good to know, thanks.

3

u/Accomplished_Buy5141 8d ago

I can't replicate it on our Intune devices, but we have self service password resets disabled. Is that a requirement for this to work?

4

u/danrhodes1987 Jack of All Trades 8d ago

No, follow the steps precisely and it works tested on our test devices.

1

u/Accomplished_Buy5141 8d ago

I know in the README you mention doing it on a freshly patched 26H2, but have you tested it on other versions such as 25H2? I'm on 26200.9974 with Narrator version 10.0.26100.8972, and it does not have the Math reading settings link. We're still blocking 26H2 so I'm hoping it's limited to that build.

2

u/danrhodes1987 Jack of All Trades 8d ago

Not tested on 25h2 but it does look to require the web sign in screen loaded as shown in the vuln git repo as this looks to be the issue and how it gets behind the lock screen.

3

u/Accomplished_Buy5141 8d ago

It definitely is impacted by something similar, while I can find the math settings link, I can navigate to the desktop. Narrator will read out the names of the desktop items, e.g. Recycle bin, but won't open anything for me when I click Caps + Enter. Still scary as I'm sure someone with more time or better skills can make it do unwanted actions. Thanks for sharing this with us!

2

u/tmontney Wizard or Magician, whichever comes first 8d ago

The Narrator updates window seems to spawn regardless. So, can I assume it's something specific with how the Entra sign-in dialog handles focus? (From the screenshot, it looks like that dialog doesn't have focus.) Otherwise, you'd have control of the hidden dialog by just merely starting Narrator.

From the GH:

As soon as you the Microsoft account window prompts you for an action to reset the account, press Win+U and click on narrator,

I'm betting it's a race-condition. The sign-in dialog appears then the Narrator updates window pushing the focus behind the scenes. If that's the case, it should be yet another reminder to Microsoft to never allow windows to draw over the lock screen. The lock screen itself should be the only application and handle all "dialogs".

It only affects Intune joined machines by the looks of it.

My hybrid/entra-only machines don't have a forgot password/pin link. This may be limited to just Windows Hello users.

2

u/danrhodes1987 Jack of All Trades 8d ago

Correct it hinges on Web Sign In being on screen and the normal accessibility button not being there. Narrator is then launched via Windows + U which looks to cause the focus to drop immediately onto the narrator window that is launched being the lock screen, you can then move around by holding down Caps and using the up down left right, space and enter keys.

2

u/Latter_Reception_600 7d ago

Yes, apparently it requires a sign-in with an MS account, so only Entra-joined devices or private devices set up with a private MS account should be affected. Any login to local accounts, accounts in pure AD and hybrid-joined environments should not be in danger.

0

u/diggurd 7d ago

If HideFastUserSwitching = 1, the forgot PIN / web sign in functions wont work. The MS login prompt will not appear, as you are describing
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] "HideFastUserSwitching"=dword:00000001

The Cisco SBL (Start before logon) module for example will set this value at installation

0

u/[deleted] 7d ago

[deleted] — view deleted comment

1

u/RedditACC4Work 7d ago

Looks like I don't have Web sign-ins enabled and WsiAccount doesn't exist.

4

u/chum-guzzling-shark IT Manager 7d ago

Does not appear to affect on-prem AD joined machines

2

u/danrhodes1987 Jack of All Trades 7d ago

No it doesn’t

72

u/cspotme2 8d ago

Funny … someone send him a usb stick.

3

u/pointofgravity 6d ago

He bought one, it works.

39

u/DeifniteProfessional IT Manager 8d ago

I've not trusted Windows lock screen since I PERSONALLY saw Google Chrome on top on a Windows 10 lock screen and happily let me use it. This feels like something that's been a random bug/issue for possibly the entire history of Windows being able to lock a computer?

19

u/Accomplished_Buy5141 8d ago

A couple of weeks ago, I saw our EHR exposed over the lock screen. I opened the laptop lid and there it was, PHI and all. Windows 11, 25H2 - still blocking 26H2, did end up showing the lock screen after about 30 seconds, but WTF?

7

u/Thotaz 8d ago

I feel like the lock screen got buggy starting with Windows 10. One time in Windows 10 the lock screen was completely transparent so I could see everything on the desktop, but I couldn't interact with it. I also frequently get a glimpse of the desktop when I wake up my PC. I don't remember having any issues with the lock screen in prior versions of Windows.

3

u/Stock_Passage9947 8d ago

Been buggy since windows 98. It ain't new. Could bypass shit in lock when I was like 10 years old and now I'm almost 40. This is old as fuck

1

u/JBONE31 7d ago

The “print function hack” as we called it

1

u/JerikkaDawn Sysadmin 5d ago

Since Windows 10, I've had Outlook notifications (classic Outlook) with full content preview appear on my lock screen.

4

u/tuxedo_jack BOFH with an Etherkiller and a Cat5-o'-9-Tails 8d ago

Just for S&G, I think I'll fire up a Win 10 VM later and see what happens.

I'd think it would be replicable on Win10, assuming it's able to sign in with MS accounts (consumer or otherwise).

2

u/cosine83 Computer Janitor 7d ago

Using accessibility hacks to get around screen lockouts has been a thing since at least WinXP. Win7 had a popular hack with the onscreen keyboard. Not surprised there's a new one.

25

u/3cit 8d ago

Microsoft has two options with this dude.
Bring him back or... The other option

6

u/ColdSysAdmin IT Director 8d ago

Microsoft, please make up with them!

3

u/1RedOne 8d ago

This is just like the 90s Novell netware login bypass, I found this on my own in middle school, it’s covered under CVE-2002-2083

4

u/SMF67 8d ago

And this is why TPM-based disk encryption is useless against all but the lowest skill attackers

3

u/dracotrapnet 8d ago

Turn on pin requirement before boot fixes that and some of the other bitlocker bypasses.

2

u/Mr_ToDo 8d ago

Wouldn't be fixing this, as it assumes that it's locked with a user logged in

But yes, for cold boot stuff a pin makes up for a lot of sins. Honestly, even a shitty pin would put off a lot of people from even trying

1

u/Green_Orange_4259 8d ago

enable Hibernation and give that a short timeout, effectively replacing 'sleep'. That will prompt for the pre-boot pin.

2

u/irrelevantusername24 7d ago

This is another absurd "vulnerability" removed from the necessary, plain language, context. That context is if you have physical access the device is not secure. That's all. There's no way around it. We can continue to add more and more layers of multi device authentication but all that does is waste time and make things annoying. I'm not saying we shouldn't have some of that stuff, but any more than the basic stuff we've had for awhile now quickly becomes cumbersome with zero benefit. It's the same thing as everything we're facing, and what it amounts to, as a former smoker, is like an addict trying to scratch a neverending itch. It's not going to work. Go cut your fingernails, that's a real problem, not the itch that won't be scratched

1

u/pinetashapple 7d ago

While I somewhat agree, time and time again these TPM-only vulnerabilities are totally mitigated by using TPM+PIN, yet Microsoft refuses to implement native support for non-admin user management.