Skip to content

New tabs open as administrator without UAC prompt/consent #20444

Description

@jamesaepp

Windows Terminal version

1.24.11911.0

Windows build number

10.0.26200.0

Other Software

No response

Steps to reproduce

I only noticed this issue today. Last night my system updated to the new Windows Terminal version per the previous field

Control:

  1. Win+A (Open PowerShell as administrator)
  2. UAC prompt occurs on secure desktop under default out-of-box Windows settings. User consents (Yes).
  3. Windows Terminal as administrator opens like normal

Experiment:

  1. Win+R (Run)
  2. powershell (Enter)
    1. Powershell opens in Terminal without admin privs and without UAC prompt
  3. net session
    1. Should output "Access is denied".
  4. Ctrl+Shift+1 (or via GUI, open new tab for powershell)
    1. Unexpected: New tab/shell opens with admin privs and without UAC prompt
  5. net session
    1. Outputs any SMB sessions (this command is really just a poor-man's test if admin privileges are working)

Expected Behavior

MS terminal opened without admin token/UAC prompt should not be able to open new shells/tabs with admin token/privileges on Windows.

Actual Behavior

MS terminal opened without admin token/UAC prompt was able to open new shells/tabs with admin token/privileges on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Tracking-ExternalThis bug isn't resolved, but it's following an external workitem.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions