githubEdit

H2 - Java SQL database

circle-check

Official page: https://www.h2database.com/html/main.htmlarrow-up-right

Access

You can indicate a non-existent name a of database in order to create a new database without valid credentials (unauthenticated):

Or if you know that for example a mysql is running and you know the database name and the credentials for that database, you can just access it:

Trick from box Hawk of HTB.

RCE

Having access to communicate with the H2 database check this exploit to get RCE on it: https://gist.github.com/h4ckninja/22b8e2d2f4c29e94121718a43ba97eedarrow-up-right

H2 SQL Injection to RCE

In this postarrow-up-right a payload is explained to get RCE via a H2 database abusing a SQL Injection.

circle-check

Last updated