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

Add SSH Tunnel check to SSH.pm to prevent users with shell access fro… #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toddr
Copy link

@toddr toddr commented Jan 8, 2019

…m creating spam tunnels.

In the past, we have seen some instances of malicious users creating local SSH tunnels to send out spam email - They could also use tunnels to commit abusive behavior overall, for example, a user could technically create a ssh tunnel between a few different hacked servers for brute force attacks.

This patch checks sshd_config (Tested against C7 + 11.66) and looks for X11Forwarding being set to yes, which implies default configuration (stock C7 enables all 3 methods of forwarding by default)

…m creating spam tunnels.

In the past, we have seen some instances of malicious users creating local SSH tunnels to send out spam email - They could also use tunnels to commit abusive behavior overall, for example, a user could technically create a ssh tunnel between a few different hacked servers for brute force attacks.

This patch checks sshd_config (Tested against C7 + 11.66) and looks for X11Forwarding being set to yes, which implies default configuration (stock C7 enables all 3 methods of forwarding by default)
@toddr
Copy link
Author

toddr commented Jan 9, 2019

CPANEL-15495

@ColMelvin
Copy link

From the description, it sounds like we are more interested in AllowTcpForwarding than any of the other entries. Why not check for that one specifically?

Note: it has many valid values: yes (the default), no, remote, & local.

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.

2 participants