Currently nas4free saves web gui password as xlm tag, like
<password>nas4free</password>
It is not secure. Why do not save md5 hash instead? Alike
echo -n password | md5
5f4dcc3b5aa765d61d8327deb882cf99
Then save 5f4dcc3b5aa765d61d8327deb882cf99 to config file
Then user types password, nas4free should make md5 from one and compare with stored md5 hash.
May be no so high security, but very easy to inplement and no visible disadvantages.
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Password md5 instead of password in config file?
- MikeMac
- Forum Moderator

- Posts: 429
- Joined: 07 Oct 2012 23:12
- Location: Moscow, Russia
- Contact:
- Status: Offline
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Password md5 instead of password in config file?
+1
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Password md5 instead of password in config file?
As for me, no need md5.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Password md5 instead of password in config file?
Why not? Your 5 years old son can open your config.xlm file and see your password.
Or you publish config to recive help, and all people see your password.
Or you publish config to recive help, and all people see your password.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Password md5 instead of password in config file?
Your 5 years old son is NAS4Free Guru?raulfg3 wrote:Why not? Your 5 years old son can open your config.xlm file and see your password.
If you publish any info online, you must check private info before publish.Or you publish config to recive help, and all people see your password.
Why I not agree?
I have working server with many users. As admin I was create users with passwords and I not save passwords to another PC. I do not keep passwords on a piece of paper glued to the monitor also.
After 2-3 mounts I cannot remember all passwords, and If user have problem I need connect as user. For do this action I read config.xml.
In case md5 passwords I need store its on piece of paper
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- MikeMac
- Forum Moderator

- Posts: 429
- Joined: 07 Oct 2012 23:12
- Location: Moscow, Russia
- Contact:
- Status: Offline
Re: Password md5 instead of password in config file?
alexey123>For do this action I read config.xml.
Alexey, may be both scenarious are applicable.
That about corrected idea
1) Add radio button to System|General|Password. User will have possibility to choise between having password itself saved ti config, or just md5 hash
2) Default behaviour should be as per now - to save password itself to config.
Alexey, may be both scenarious are applicable.
That about corrected idea
1) Add radio button to System|General|Password. User will have possibility to choise between having password itself saved ti config, or just md5 hash
2) Default behaviour should be as per now - to save password itself to config.
-
davidb
- Starter

- Posts: 55
- Joined: 05 Jul 2012 17:51
- Status: Offline
Re: Password md5 instead of password in config file?
i brought up a similar scenario to the developers a long time ago, right around the time that FN and N4F split (don't remember which team i asked). As i was new to N4F, i was playing around with the various settings, and decided to give active directory integration a go. After asking our IT manager to put in the domain admin password, i discovered that if i looked at the page html source i could read the password.
My proposed solution was instead of having a text box waiting for the password, to have a button that would open a window with one (or two, depending on if you wanted to have to retype the password) empty text field to input the password, and then save, and the old password would never be exposed.
The response i got was basically that if you have access to the webmin, you have access to the passwords. Also, because the config file saves all the passwords, all you would have to do is "save configuration" and you have them in cleartext anyways.
My proposed solution was instead of having a text box waiting for the password, to have a button that would open a window with one (or two, depending on if you wanted to have to retype the password) empty text field to input the password, and then save, and the old password would never be exposed.
The response i got was basically that if you have access to the webmin, you have access to the passwords. Also, because the config file saves all the passwords, all you would have to do is "save configuration" and you have them in cleartext anyways.