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

FvwmButtons: stop listening for incoming TCP connections #1030

Merged
merged 1 commit into from
May 29, 2024

Conversation

vladrich
Copy link
Contributor

Fixes #1029

libs/fsm.c Outdated
Comment on lines 1050 to 1051
fvwm_debug(__func__, "[%s][fsm_init] "
"Security risk: _IceTransNoListen is not available. "
"Cannot stop listening for TCP connections.\n"
"A firewall is strongly recommended. "
"See https://github.com/fvwmorg/fvwm3/issues/1029\n", module_name);
#endif


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely not!

There is no need for this to be logged like this.

First of all, I don't want to log sensationalist messages like this.

Second of all, there's absolutely no security risk at all with FvwmButtons listening on TCP. FVWM already has an open socket to send commands to (which also includes executing arbitrary commands), so there's no explicit exploit here.

Please remove this entire block, and stop inciting unnecessary FUD.

@ThomasAdam
Copy link
Member

Thanks, @vladrich

There's no way I'm merging this as-is. Comments and corrections given to the PR.

libs/fsm.c Outdated
Comment on lines 1049 to 1051
#else
fvwm_debug(__func__, "[%s][fsm_init] "
"_IceTransNoListen is not available. "
"Cannot stop listening for TCP connections.\n", module_name);
#endif


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skip the else block entirely, please.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed the output completely now. I do want to point out though that without _IceTransNoListen, FVWM is accepting remote connections. Anyone with a network route to the machine can, in the very least, crash FvwmButtons. Unless I am missing something here, this does look like a security risk to me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, no. It's not a big security risk.

I will merge this.

@ThomasAdam ThomasAdam merged commit f036638 into fvwmorg:main May 29, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

FvwmButtons listens for incoming TCP connections
2 participants