Community discussions

MikroTik App
 
akschu
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Thu Mar 15, 2012 2:09 am

Users default to no password, and no way to detect it!

Tue Dec 19, 2017 10:46 pm

RouterOS Devs:

The default user creation doesn't require a password, and defaults to blank, which means if someone simply does a:

/user add name=fred group=full

Then you can immediately login as fred with no password. This creates a significant security issue that isn't immediately obvious. Furthermore, there is no way to tell if a password is set without SSH'ing to the host to see if it lets you on. So auditing this is difficult to do.

I propose the following to fix this:

1. Make password a required attribute to the /user add command. Then if you forgot a password, it will prompt you, and then if leave it blank, at least it kind of warned you.

or

2. Like above, but force the user to choose a password, so that you can't have blank passwords other than the default admin password before it's changed.

or

3. /user aaa set use-blank-passwords=no and if that's set, then just don't allow blank passwords in the web interface or ssh.

Thanks,
schu
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Users default to no password, and no way to detect it!

Tue Dec 19, 2017 11:02 pm

Who is that "someone"? Isn't it administrator? What if he disables all interfaces? What if he sets dropping all rule in raw table? What if he shuts down the system?

Should the system be protected against the administrator?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Users default to no password, and no way to detect it!

Fri Dec 22, 2017 3:07 pm

RouterOS cannot be completely foolproof.

Why is the problem for the administrator to specify password right away when creating a user?
/user add name=aa password=bb
 
JimmyNyholm
Member Candidate
Member Candidate
Posts: 248
Joined: Mon Apr 25, 2016 2:16 am
Location: Sweden

Re: Users default to no password, and no way to detect it!

Tue Jan 02, 2018 8:19 pm

There is no problem in the current implementation but there is also not possible to list all users with "full - admin" access and check if the password is set or not.
This makes problems in the Auditing land.
 
tqmark
just joined
Posts: 1
Joined: Fri Sep 02, 2016 7:46 pm

Re: Users default to no password, and no way to detect it!

Sun Jul 08, 2018 2:31 am

I agree with the feature request.

To address mrz' point, correct routeros cannot be foolproof. However, the Mikrotik current logic does not match what you find on a Linux host

Linux host: I can create a user (without a password) and drop in .ssh/authorized_keys in his account so he can login. The user does not have a password, but can login with ssh key.

in Mikrotik: I create a user (without a password), but his password defaults to "". The ssh daemon should not let the user login with "" password.

Who is online

Users browsing this forum: No registered users and 166 guests