漏洞描述
H2 Database from 1.4.198 up to (but not including) 2.1.210 is affected by a pre-authentication remote code execution in the web console. The 1.4.198 fix for CVE-2018-10054 appends FORBID_CREATION=TRUE to the JDBC URL, but it can be bypassed by ending the URL with a backslash. Combined with a JDBC URL that defines an INIT trigger running a JavaScript block, an unauthenticated attacker who can reach the console runs arbitrary OS commands; the command output is reflected in the error response.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。
参考链接
github.comhttps://github.com/vulhub/vulhub/tree/master/h2database/CVE-2022-23221↗www.leavesongs.comhttps://www.leavesongs.com/PENETRATION/talk-about-h2database-rce.html↗github.comhttps://github.com/advisories/GHSA-45hx-wfhj-473x↗github.comhttps://github.com/h2database/h2database/releases/tag/version-2.1.210↗nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2022-23221↗