Description
Stirling-PDF from 2.13.2 through 3.2.0 contains an incomplete denylist in DatabaseService.validateSqlContent() that allows administrators to bypass H2 import restrictions using CREATE OR REPLACE ALIAS. Authenticated administrators can upload a crafted SQL backup to the import-database endpoint, where RUNSCRIPT defines H2 Java function aliases and restores Java-method execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Stirling-Tools | Stirling-PDF | 2.13.2 – ≤ 3.2.0 | — |
References
- https://github.com/abraxas/stirling-h2-import-leftover exploit technical-description
- https://abraxaslabs.tech/research/stirling-h2-import-leftover technical-description
- https://abraxaslabs.tech/research/stirling-pdf-3.2.0-leftovers technical-description
- https://github.com/Stirling-Tools/Stirling-PDF/blob/v3.2.0/app/proprietary/src/main/java/stirling/software/proprietary/security/service/DatabaseService.java technical-description
- VulnCheck Advisory: Stirling-PDF 2.13.2 through 3.2.0 H2 SQL Denylist Bypass via import-database third-party-advisory