Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[6.11.5] SSH Port 22 Accessible Before System Configuration is Loaded. (Possible Other Services Likewise Affected)

  • Urgent

Hi there.

I had to reboot my server recently, and I received a `Possible Hack Attempt` notification from a plugin called `Fix Common Problems'.
image.thumb.png.0a24366a95a312b543ad9570f4caa7e5.png

 

Looking into this, I think I've found a bug/security issue. The server's SSH port should be configured to port `1122`. However while the system is booting up, SSH is started before the set configuration is read, leading to port 22 being exposed.
Now, I have port 22 forwarded to the server for a service running `Forgejo`, a code repository service. The reason port 22 is being used is to lessen client configuration, and to make it simpler for users.

The bug here is unRaid is loading SSH with default values for a time, and later restarting with the correct config. This creates a window for attackers to attempt to access the system through something that isn't meant to be exposed.

Steps to reproduce:
1. Set a different port for SSH through unjRaid's web UI.
2. Reboot the server.
3. There is now a windows of opportunity to attack the server via the default SSH port as it starts. Plugins extend this window.

Some of the Logs:
SSH being started with port 22:
image.png.8eef11cb0a2e6ee9e6802bdf1ca6e85b.png

 

SSH login attempts being made during this window of opportunity:
image.thumb.png.8d6d8fc25cee5c946b9ec6ab295ee224.png

image.thumb.png.9a42164b73657655b814d80081001ab2.png

There's more than just those.

SSH being restarted with the correct configuration:
image.thumb.png.11441bf60bebcf07c9b5aab005e88920.png

 

 

 

I'll also make a quick note it looks like smbd is having the same treatment, it's loaded with defaults, then restarted with the proper configs later. So it appears there might be several system services being started like this when they shouldn't.

Will make this as urgent, though I'll admit I'm not 100% if SSH will accept the correct password. This server runs a chat service, so uptime is import for me, and testing would interrupt that. Please adjust the urgency as needed if it's not as bad as I think it might be.

atlantis-diagnostics-20230227-0254.zip

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.