Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security Issue: when in multiple users, someone hijack my machine and starting miner app #3461

Open
MorrisLu-Taipei opened this issue May 12, 2024 · 4 comments

Comments

@MorrisLu-Taipei
Copy link

MorrisLu-Taipei commented May 12, 2024

Please help to provide admin login / password
I am teacher, providing my comfyui server url for our students.
Now, my workaround solution is REMOVE ComfyUI-Manger, when provide server url to my students.

Because we also teach students to use comfyui url to study krita, so all students will know the comfyui web url without any login control.

suggestions

  1. provide api url only .
  2. provide login / password

Here someone install lolminer into our machine via comfyui manager I guess
Uploading Clipboard01.png…
image

@MorrisLu-Taipei
Copy link
Author

My friend said this feature is ready last week,
https://github.com/liusida/ComfyUI-Login

Let try it.

@comfyanonymous
Copy link
Owner

The manager is not meant to be used on shared ComfyUI installs, it lets anyone with access to the ComfyUI interface install and run anything in your instance.

I don't even recommend running a publicly accessible instance of the base ComfyUI.

@liusida
Copy link

liusida commented May 14, 2024

My friend said this feature is ready last week, https://github.com/liusida/ComfyUI-Login

Let try it.

Thank you for mentioning ComfyUI-Login!

My solution for sharing ComfyUI with others is to use Docker containers since Docker enhance security through isolation.

I have a host with a 4090 GPU, and I built a Docker image starting from pytorch/pytorch:2.2.2-cuda12.1-cudnn8-runtime, cloning the ComfyUI repo and some custom nodes automatically, including ComfyUI-Login. I use Docker Compose to manage all the containers.

I assigned each container (with different port numbers) to different users, who will log in and set their passwords. If I find any of the containers acting abnormally (like using a lot of GPU VRAM), I will ask that user what they have installed, and I may stop or reset their container to minimize the harm.

I haven't shared my Dockerfile and scripts on GitHub since they don't cover most situations, but they work fine for me. Let me know if you need them for reference.

@NeedsMoar
Copy link

NeedsMoar commented May 21, 2024

The manager is not meant to be used on shared ComfyUI installs, it lets anyone with access to the ComfyUI interface install and run anything in your instance.

I don't even recommend running a publicly accessible instance of the base ComfyUI.

Python doesn't even recommend running python as a public web-server, for that matter. They routinely pass on fixing critical https vulnerabilities because code separation doesn't exist between the various components to prevent hijacking / bypassing certs, and there's an ancient bug that allows using any python-based server as an open proxy that's marked WONTFIX.

Their other justification is that it's not the primary purpose of the language or even something it's very good at and they don't want to get tied up endlessly fixing the slew of networking vulnerabilities that show up daily when someone could just run nginx instead. The fastcgi module was either deprecated or removed recently for similar reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants