Installer launches XYplorer with admin privileges → unintended admin sessions

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Basel Shishani
Posts: 1
Joined: 04 May 2026 01:43

Installer launches XYplorer with admin privileges → unintended admin sessions

Post by Basel Shishani »

I ran into a confusing (and potentially risky) behaviour during a fresh install.

What happened
  • The installer does not request administrator rights itself; it tells you to run it as administrator.
  • I ran the installer with administrator privileges.
  • After install, the “Launch XYplorer” checkbox was ticked → XYplorer auto-started.
  • That instance inherited the administrator privileges from the installer.
No new security prompt appears at that stage, so it’s easy to miss that XYplorer is now running with administrator rights.

Why this matters
XYplorer is a file manager and a launcher. When it runs with administrator privileges:
  • anything launched from it (Command Prompt, PowerShell, scripts) inherits administrator rights
  • file operations occur with full system access
  • there’s no clear indication tied to the action (the elevation happened earlier)
Concrete example (custom command)
I created a simple custom command to open Command Prompt in the current folder:

Code: Select all

// Run Script
run "cmd.exe /k cd /d ""<curpath>"""
When triggered from the auto-launched XYplorer:
  • Command Prompt opened already with administrator rights
  • no security prompt was shown
  • administrator-only operations (e.g., sc stop spooler) succeeded
From a normally launched XYplorer instance, the same command opens a non-elevated Command Prompt, as expected.

Expected behaviour (typical Windows pattern)
  • Installer requests administrator rights directly (clear system prompt)
  • After installation, the application launches without administrator rights, or does not auto-launch
Observed behaviour
  • Installer with administrator rights → auto-launched XYplorer continues with those privileges (implicit)
Why it’s problematic
  • breaks least-privilege expectations
  • creates hidden elevated state
  • increases risk of unintended system changes
Suggestion
  • Do not auto-launch XYplorer from an elevated installer, or
  • Relaunch it without administrator rights after install, or
  • Clearly indicate elevated state in the interface/title
This would align with standard Windows behaviour and reduce confusion.

Edit
The script that worked for launching an admin cmd prompt:

Code: Select all

 opencommandprompt , , , 1 
XYplorer Version: 28.30.0600 (64-bit)
Windows Version: 10 Pro
Screen Scaling: 225%

admin
Site Admin
Posts: 66069
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Installer launches XYplorer with admin privileges → unintended admin sessions

Post by admin »

It's all true, but this is just how Windows is designed. The child process automatically gets the parent's rights. I can't change it.

It might be a good idea though to add a clear "admin" mark somewhere if XY is running with admin privileges.

Post Reply