hacktricks/network-services-pentesting/pentesting-web/h2-java-sql-database.md
2023-04-25 20:35:28 +02:00

3.9 KiB

H2 - Java SQL database

☁️ HackTricks Cloud ☁️ -🐦 Twitter 🐦 - 🎙️ Twitch 🎙️ - 🎥 Youtube 🎥

Official page: https://www.h2database.com/html/main.html

Tricks

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:

Tricks from box Hawk of HTB.

Unauthenticated RCE

You can find the exploit here https://gist.github.com/h4ckninja/22b8e2d2f4c29e94121718a43ba97eed

☁️ HackTricks Cloud ☁️ -🐦 Twitter 🐦 - 🎙️ Twitch 🎙️ - 🎥 Youtube 🎥