immense / Remotely

A remote control and remote scripting solution, built with .NET 8, Blazor, and SignalR.
GNU General Public License v3.0
4.54k stars 1.61k forks source link

Non-admin users cannot download resident agents #829

Open Noirvent opened 8 months ago

Noirvent commented 8 months ago

Describe the bug Users that are not administrators cannot downloads the Resident Agents. They get a 401 Unauthorized error. They can however download the "Files Only" versions. Seems linked to the fact that executables are in /API/ClientDownloads/ while files-only versions are in /Content/ This is consistent with all OS agents.

To Reproduce Steps to reproduce the behavior:

  1. Log-in as an non-admin user
  2. Click on 'Downloads' link
  3. Click on 'Windows Installer (x64/x86)' or 'Ubuntu x64 Bash Installer'
  4. See error

Remotely Version Server (can be found on about page): 2024.02.23.1927 Agent (can be found in device card): 2024.02.23.1927

Expected Behavior A non-admin user should be able to download and install resident agent.

Desktop (please complete the following information):

bcurran3 commented 8 months ago

+1 this.

I too would like the ability for non Remotely admins to download and install the Resident Agents easily.

I do see security concerns here. I have put preconfigured RMM agents up for download on a company website and found Microsoft scanned and installed the agents for testing. Those agents popped up in my admin console of course and almost accrued new monthly service charges for the company.

Some possible ways to control this and appease everyone:

FEATURE REQUEST!

p.s. Just one day into evaluating Remotely. I like it. Thanks for your hard work.

Noirvent commented 8 months ago

Actually the links to download the Resident Agents are not showed to non-logged people, but are to logged-in people, ignoring if they are admins or not (granting them that 401 unauthorized if they try to download it). this is inconsistent.

Either:

But as a sysadmin hosting Remotely, I would like the ability to delegate the installation of Resident Agents without having to use the admin account. The helpdesk doing support have no need for server config access or user management.

I do see security concerns here. I have put preconfigured RMM agents up for download on a company website and found Microsoft scanned and installed the agents for testing. Those agents popped up in my admin console of course and almost accrued new monthly service charges for the company.

If that is a concern, maybe the server admin should be able to cherry-pick which account as the privilege to download the resident agent or not