Exploitation Summary
EIP tracks 2 public exploits for CVE-2021-42392. PoCs published by Be-Innova.
AI-analyzed exploit summary This repository contains a functional exploit for CVE-2021-42392, targeting H2 Database versions prior to 2.0.206. The exploit leverages the `CREATE ALIAS` feature to achieve remote code execution via JDBC connection to a vulnerable H2 TCP service.
Description
The org.h2.util.JdbcUtils.getConnection method of the H2 database takes as parameters the class name of the driver and URL of the database. An attacker may pass a JNDI driver name and a URL leading to a LDAP or RMI servers, causing remote code execution. This can be exploited through various attack vectors, most notably through the H2 Console which leads to unauthenticated remote code execution.
Exploits (2)
This repository contains a functional exploit for CVE-2021-42392, targeting H2 Database versions prior to 2.0.206. The exploit leverages the `CREATE ALIAS` feature to achieve remote code execution via JDBC connection to a vulnerable H2 TCP service.
The repository contains a Python script designed to detect H2 Console web pages and check for access restrictions related to CVE-2021-42392. It scans a list of IPs for exposed H2 Console instances but does not include exploit code for the vulnerability.
References (7)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H