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] nodm runs X server without -auth by default, allowing any user to connect #22

Open
CyberShadow opened this issue Jul 1, 2022 · 1 comment

Comments

@CyberShadow
Copy link

Hi, I realize this project is no longer maintained, I'm filing this mostly out of due diligence and for future readers.

I accidentally noticed that any local user can connect to DISPLAY=:0, even without access to the .Xauthority file, or XAUTHORITY environment variable, or any additional xauth / xhost configuration permitting them. In the end (with help from susi on #archlinux) this was narrowed down to nodm running Xorg without -auth.

I configured nodm according to its suggested configuration, i.e. NODM_X_OPTIONS='vt7 -nolisten tcp'.

startx does configure an auth file and place it the server's command line using -auth, so this problem does not occur when launching the X server via getty -> startx.

@ryao
Copy link

ryao commented Nov 25, 2022

You could pass -auth via NODM_X_OPTIONS, but for the purpose of running a kiosk, this is probably not a problem.

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

2 participants