Hi, You are right, using the flag "webAllowOthers" on an unprotected computer that is accessible from the internet is not secure, and the documentation doesn't make that clear. I will change the documentation as follows:
------------------------ By default this database does not allow connections from other machines when starting the H2 Console, the TCP server, or the PG server. Remote access can be enabled using the command line options -webAllowOthers, -tcpAllowOthers, -pgAllowOthers. If you enable remote access using -tcpAllowOthers or -pgAllowOthers, please also consider using the options -baseDir, -ifExists, so that remote users can not create new databases or access existing databases with weak passwords. When using the option -baseDir, only databases within that directory may be accessed. Ensure the existing accessible databases are protected using strong passwords. If you enable remote access using -webAllowOthers, please ensure the web server can only be accessed from thrusted networks. The options -baseDir, -ifExists don't protect access to the tools section, prevent remote shutdown of the web server, changes to the preferences, the saved connection settings, or access to other databases accessible from the system. ------------------------ It would be nice if using "webAllowOthers" is more secure, but I'm not sure how to best do that. Maybe tools section, and the preferences, should only be accessible from localhost. This would somewhat limit usability, and even then, an attacker could still mess with the saved connection settings and try to access other (non-H2) databases. Regards, Thomas On Fri, Sep 26, 2014 at 9:19 PM, Gilad Kutiel <[email protected] <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote: > Hi, > > Maybe I'm missing something. but it seems to me that there is a real > security issue when using the -webAllowOthers flag. > I have read the Protection against Remote Access > <http://www.h2database.com/html/advanced.html#remote_access> section and > I understand that by using the -baseDir, -ifExists flags other users "can > not create new databases or access existing databases with weak passwords", > but it seems to me that they can still: > > - add and remove saved connections settings > - shutdown the web server > - change the preferences > - execute all the tools under the *tools* section ? > > What am I missing ? > > Thank you > > Gilad > > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
