HowTo make your Readynas more secure [nessus/ssl]

Please post any helpful and useful tips to maximize your fellow ReadyNAS users' experience.

HowTo make your Readynas more secure [nessus/ssl]

Postby Jeroen1000 » Thu Aug 28, 2008 12:48 am

This HowTo is based on a RND 2150 with firmware 4.1.3-T136. It should work for other Readynas devices as well.
A big thanks goes out to Chirpa for leading me the way :thumbsup:

Before you get started:

Take a backup of httpd.conf and proftpd.conf before you make any changes to its configuration.
Make sure you have SSH access to your Nas. I believe that reinstalling the firmware will undo any changes made by this HowTo.


1) Problem: The remote SSH host keys are weak. please see: http://wiki.debian.org/SSLkeys
Consider all cryptographic material generated on the remote host to be guessable.
In particuliar, all SSH, SSL and OpenVPN key material should be re-generated: Regenerate SSH and SSL keys.

Recommendation: Take immediate action!

Solution:
For SSL, you can generate a new key on the HTTPS page of your Readynas

For SSH, type following commands on the shell:
Code: Select all
# ssh-keygen -t rsa1 -f "/etc/ssh/ssh_host_key" -N ''
# ssh-keygen -t rsa -f "/etc/ssh/ssh_host_rsa_key" -N ''
# ssh-keygen -t dsa -f "/etc/ssh/ssh_host_dsa_key" -N ''


2) Problem: HTTPS access service encrypts traffic using a protocol with known weaknesses (being SSL 2.0). Disable SSL 2.0 and use SSL 3.0 or TLS 1.0 instead.

Recommendation: Although not as bad as the previous, I would change it as soon as possible

Solution:

*** Please backup httpd.conf before making any changes ***

Type following commands on the shell:
Code: Select all
# echo SSLProtocol all -SSLv2 >> /etc/frontview/apache/httpd.conf
# killall apache-ssl
# /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf

3) Problem: HTTPS access service supports the use of weak SSL ciphers suites. Reconfigure it to avoid use of weak
ciphers.

Recommendation: Changing it won't hurt:)

Solution:

*** Please backup httpd.conf before making any changes ***

Type following commands on the shell:
Code: Select all
# echo 'SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP:-eNULL' >> /etc/frontview/apache/httpd.conf
# killall apache-ssl
# /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf


4) Problem:The remote webserver (HTTPS or HTTP) supports the TRACE and/or TRACK methods. TRACE
and TRACK are HTTP methods which are used to debug web server connections.
Servers supporting the TRACE method are subject to cross-site scripting attacks and various other browser hacks.

Recommendation: Changing it won't hurt:)

Solution:

*** Please backup httpd.conf before making any changes ***

Type following commands on the shell:
Code: Select all
# echo TraceEnable off >> /etc/frontview/apache/httpd.conf
# killall apache-ssl
# /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf


5) Problem: It is possible to obtain the banner of the remote FTP server by connecting to the remote port. Basically, you are giving away the FTP version number and that the FTP service is on a Readynas. If someone finds a weakness in the FTP server that the Readynas is running, it would not be wise to help hackers by telling you are running this particular version.

Recommendation: Changing it won't hurt:)

Solution:

*** This is not a way to secure your Nas! If there is a bug in an application, it must be corrected. In the meantime actions like this may save you from more harm***

***Please backup proftpd.conf before making any changes ***

Edit proftpd.conf to reflect the config below. Change or add the lines with a * (remove the * though)

Code: Select all
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody/nogroup" and "ftp" for normal operation and anon.
ServerName     "Don't tell you are a Readynas here"*
ServerType                      standalone
ServerIdent                     on "Don't tell you are ProFTPD 1.3 here!"*
DeferWelcome                    on

MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on
AllowOverwrite                  on
UseReverseDNS                   off
IdentLookups                    off
TimesGMT                        off
WtmpLog                         off
ServerLog                       /var/log/proftpd.log
SystemLog                       /var/log/proftpd.log
TransferLog                     /var/log/proftpd.log
BanLog                          /var/log/proftpd.log
MaxLoginAttempts                1
BanEngine                       on
BanTable                        /ramfs/ftp_ban.tbl
BanOnEvent                      MaxLoginAttempts 5/00:10:00 00:15:00

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    welcome.msg
DisplayChdir               .message

DenyFilter                      \*.*/

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
PersistentPasswd                on

# Uncomment this if you would use TLS module:
#TLSEngine                      on

# Uncomment this if you would use quota module:
#Quotas                         on

# Port 21 is the standard FTP port.

LINES HAVE BEEN REMOVED HERE TO PROTECT MYSELF.

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            nobody
Group                           nogroup

# Normally, we want files to be overwriteable.
<Directory /*>
  # Umask 022 is a good standard umask to prevent new files and dirs
  # (second parm) from being group and world writable.
  Umask                         022  022

  AllowOverwrite                on
  HideFiles                     .*
</Directory>

Jeroen1000
Advanced ReadyNAS User
 
Posts: 123
Joined: Sun Jul 20, 2008 2:50 pm

Re: HowTo make your Readynas more secure

Postby tlyczko » Thu Aug 28, 2008 10:21 am

Please clarify: ServerName should be CHANGED to something different and ServerIdent should be off or on??

Thank you, Tom
tlyczko
ReadyNAS Expert
 
Posts: 342
Joined: Mon Aug 14, 2006 9:27 am

Re: HowTo make your Readynas more secure

Postby Jeroen1000 » Thu Aug 28, 2008 10:41 am

Hi Tom.

By default, when you connect to the FTP it tells you what version it is running.

Code: Select all
ServerIdent         off

will cause your server not to identify itself when you connect. Optionally you can also do:
Code: Select all
ServerIdent         on "Your text here"


So from a security point of view, you can choose. As long as you do not reveal any security related information. Also see http://www.proftpd.org/docs/directives/ ... Ident.html

As servername I believe the standard text is Readynas or something. Same story, you can put what you like here. If hackers know it is a Readynas they could exploit known weaknesses in the FTP or in other services of the NAS. So yes, you should change it also.
Jeroen1000
Advanced ReadyNAS User
 
Posts: 123
Joined: Sun Jul 20, 2008 2:50 pm

Re: HowTo make your Readynas more secure

Postby MichaelR64 » Fri Sep 03, 2010 2:47 am

Hi,

When experimenting with my ReadyNAS i noticed that when i accessed my nas from the internet that most of the plugin webpages are wideopen regarding security.
After searching I came across some pages with Apache mods.

And i saw this page about raising the encryption standards used.

How much of this is still valid anno september 2010 for a NVX Pioneer ?
Readynas NVX Pioneer 4.2.19 with 4 * WD20EARS WDIDLE'ed
User avatar
MichaelR64
ReadyNAS User
 
Posts: 75
Joined: Sat Jul 31, 2010 9:11 am
ReadyNAS: NVX

Re: HowTo make your Readynas more secure

Postby InTheShires » Wed Sep 22, 2010 3:40 pm

MichaelR64 wrote:
How much of this is still valid anno september 2010 for a NVX Pioneer ?


I too would like to know this. ^^ Though for the Duo, not Pro.

I'm concerned my Duo isn't as secure as perhaps it should be, and I really want to address this.

I'm using NASMonitor and nTop to keep an eye on things, and nTop worries me sometimes with some large data transfer figures. (8gb today) I've only had the laptop on today, and 2ndCopy would not have chucked 8gb over the WiFi today, with me knowing, and showing it.

I'm concerned here!

Thanks.
InTheShires
ReadyNAS Expert
 
Posts: 463
Joined: Mon Aug 10, 2009 11:38 am
Location: DUO + ULTRA
ReadyNAS: Ultra

Re: HowTo make your Readynas more secure

Postby ukez » Fri Oct 29, 2010 12:51 am

InTheShires wrote:
MichaelR64 wrote:
How much of this is still valid anno september 2010 for a NVX Pioneer ?


I too would like to know this. ^^ Though for the Duo, not Pro.

I'm concerned my Duo isn't as secure as perhaps it should be, and I really want to address this.

I'm using NASMonitor and nTop to keep an eye on things, and nTop worries me sometimes with some large data transfer figures. (8gb today) I've only had the laptop on today, and 2ndCopy would not have chucked 8gb over the WiFi today, with me knowing, and showing it.

I'm concerned here!

Thanks.


I'd also like to know if these have all been addressed.. how secure is our DUO?
ukez
ReadyNAS Newbie
 
Posts: 36
Joined: Fri Aug 27, 2010 4:15 am
ReadyNAS: Duo

Re: HowTo make your Readynas more secure [nessus/ssl]

Postby Rocket Man » Fri Nov 26, 2010 6:13 pm

I am looking at this thread - 3 months on and no assurances given. I think the conclusion is that the Duo is an open window if you leave it visible from outside you are vulnerable and so is your data, This is a pity since it means you would need to be reckless to use e.g. ReadyNAS Remote. Until these holes are addressed, best not to make it visible at all saddly - close off your firewall/router and do not allow access from the internet.

Rocket Man
User avatar
Rocket Man
ReadyNAS Newbie
 
Posts: 17
Joined: Tue Nov 23, 2010 9:40 pm
Location: England
ReadyNAS: Duo

Re: HowTo make your Readynas more secure [nessus/ssl]

Postby sphardy » Sat Nov 27, 2010 2:02 am

you would need to be reckless to use e.g. ReadyNAS Remote

ReadyNAS remote doesn't require you to open any ports - one of the primary values of the service - and so the one example you perhaps should not have thought to mention in your comment

NAS: Ultra-4, NV+ & Duo v2 :: ST31500341AS & HDS723020BLA642 Drives
Network: Netgear GS108Tv2 / DM111P :: Airport Extreme / Express & Time Capsule
Clients: OS X 10.6 - 10.8 :: Ubuntu 11.x :: Win 7 + SP#1
UPS: APC ES-550

Image
User avatar
sphardy
ReadyNAS Junkie
 
Posts: 4626
Joined: Thu Feb 28, 2008 3:34 am
Location: France
ReadyNAS: Ultra

Re: HowTo make your Readynas more secure [nessus/ssl]

Postby Rocket Man » Sat Nov 27, 2010 6:51 am

Really? Gosh I didn't realise that. I am happy to be corrected and I apologise for my incorrect assertion that opening the firewall was necessary for ReadyNAS Remote to work. (/me runs off to test it with a closed firewall!).
Thank you for the correction.

Rocket Man.
User avatar
Rocket Man
ReadyNAS Newbie
 
Posts: 17
Joined: Tue Nov 23, 2010 9:40 pm
Location: England
ReadyNAS: Duo

Re: HowTo make your Readynas more secure [nessus/ssl]

Postby cinskeep » Mon Feb 13, 2012 5:23 pm

How do I get a NETGEAR tech or admin to fix these issues on my ReadyNAS, so I don't have to install RootSSH and possibly screw it up?
User avatar
cinskeep
ReadyNAS User
 
Posts: 70
Joined: Thu Dec 01, 2005 10:15 am

Re: HowTo make your Readynas more secure [nessus/ssl]

Postby kHarrison » Thu Mar 15, 2012 6:17 am

Thanks for the detailed guidelines, especially helpful for such beginners as me. I have made notice of the tips, will keep watching the thread for updates.
http://pictureeditorfree.org, free picture editor download
kHarrison
ReadyNAS Newbie
 
Posts: 1
Joined: Thu Mar 15, 2012 6:13 am
ReadyNAS: 1000S

Re: HowTo make your Readynas more secure [nessus/ssl]

Postby tiranor » Mon Mar 19, 2012 1:51 am

Hi, it's been almost 4 years since the first post. How much the NAS beahavior has changed since that time ?
ReadyNAS Ultra 4 (with 2GB RAM) with 1x WDC WD30EZRX (Caviar Green 3TB) and 3x Seagate ST3000DM001 (Barracuda 3TB) - 8326 GB
Dual switch Netgear GS605 : one main switch in the wiring closet, one for the "distribution" on DLNA devices (TV, Amp, media player)
NAS and internet box/router (Freebox V6) on CyberPower DX600E ASI (usb connected)
tiranor
Advanced ReadyNAS User
 
Posts: 192
Joined: Mon Oct 31, 2011 12:41 pm
Location: France
ReadyNAS: Ultra

Re: HowTo make your Readynas more secure [nessus/ssl]

Postby Deb-B » Mon Apr 23, 2012 3:44 am

I am still concerned regarding the Duo v2, with Photos II especially, which appears to be port forwarding our IP address to everyone we send an invitation to... My brother in law was able to use this address to access the login page for the NAS. Sounds nasty.... he advised me not to use Photos 2 and to turn off port forwarding and uPnP, which I have done. I am rather disappointed, as being able to share and host my own photos was a feature I was quite looking forward to using! I have asked about this in the Photos II thread, but have had no reply....
Deb-B
ReadyNAS Newbie
 
Posts: 46
Joined: Tue Apr 17, 2012 11:54 pm
ReadyNAS: Duo v2

Re: HowTo make your Readynas more secure [nessus/ssl]

Postby StephenB » Mon Apr 23, 2012 7:28 am

Deb-B wrote:I am still concerned regarding the Duo v2, with Photos II especially, which appears to be port forwarding our IP address to everyone we send an invitation to... My brother in law was able to use this address to access the login page for the NAS. Sounds nasty.... he advised me not to use Photos 2 and to turn off port forwarding and uPnP, which I have done. I am rather disappointed, as being able to share and host my own photos was a feature I was quite looking forward to using! I have asked about this in the Photos II thread, but have had no reply....
Why is this so concerning to you? Presumably you have a strong password.
User avatar
StephenB
Incurable ReadyNAS Junkie
 
Posts: 5062
Joined: Mon Oct 05, 2009 5:08 pm
ReadyNAS: Pro

Re: HowTo make your Readynas more secure [nessus/ssl]

Postby Deb-B » Sat Apr 28, 2012 7:35 pm

I think it is because I don't understand how networking works, beyond my own home system. My brother in law was quite adamant that broadcasting the IP was a potentially huge risk, as it leaves our home systems open to hackers. I need to learn more so I can make my own judgements! Any suggestions of web pages explaining these things to newbies would be welcome!
Deb-B
ReadyNAS Newbie
 
Posts: 46
Joined: Tue Apr 17, 2012 11:54 pm
ReadyNAS: Duo v2

Next

Return to User Submitted Tips



Who is online

Users browsing this forum: No registered users and 1 guest