Skip to content

Conversation

GiuseppePorcu
Copy link
Contributor

Hi,
I have added testbed for the HyperSQL weak credentials.
Regards,


5. SECURED: Run the docker build: `cd hsqldb_secured && docker build . -t hsqldb_secured && docker run -d -p 8081:9001 --name hsqldb_secured hsqldb_secured && cd ..`

6. Connect to it locally by using hsqldb.jar and sqltool.jar with command `java -cp hsqldb-2.7.2.jar:sqltool.jar org.hsqldb.cmdline.SqlTool --inlineRc=url=jdbc:hsqldb:hsql://localhost:8081/testdb,user=SA` and using password `securedpassword`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @GiuseppePorcu, thanks for your contribution!
Testbed is fine, however step 6 can be improved by providing a command equivalent to the one in step 5, along with an alternative to verify whether a password has effectively been set.

Suggested change
6. Connect to it locally by using hsqldb.jar and sqltool.jar with command `java -cp hsqldb-2.7.2.jar:sqltool.jar org.hsqldb.cmdline.SqlTool --inlineRc=url=jdbc:hsqldb:hsql://localhost:8081/testdb,user=SA` and using password `securedpassword`
6. Connect to it locally using `hsqldb.jar` and `sqltool.jar` as follows:
`java -cp hsqldb-2.7.2.jar:sqltool.jar org.hsqldb.cmdline.SqlTool --inlineRc=url=jdbc:hsqldb:hsql://localhost:8081/testdb,user=SA,password=`
The above command will not log in successfully with an empty password, as expected. To authenticate properly, remove the password parameter and enter the correct password `securedpassword` when prompted. The final working command is:
`echo -n securedpassword | java -cp hsqldb-2.7.2.jar:sqltool.jar org.hsqldb.cmdline.SqlTool --inlineRc=url=jdbc:hsqldb:hsql://localhost:8081/testdb,user=SA`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants