DataEase SQL injection and SSRF vulnerabilities create server file-read and intranet-probing risk
An attacker can use the /de2api/datasetData/previewSql endpoint to execute malicious Base64-encoded SQL statements, then combine the H2 engine FILE_READ function to bypass path filtering and read arbitrary local files on the server, or obtain sensitive information through insufficiently authenticated interfaces. In addition, JDBC parameters in data-source configuration lack sanitization and can lead to connection-string injection; together with remote file-loading, this forms SSRF, allowing outbound requests toward intranet services or cloud metadata interfaces and thereby leaking internal network topology and credentials.
- Implement a strict SQL-statement allowlist and forbid execution of non-query dangerous functions. Validate protocols for all external URL requests and block access to private address ranges. In data-source configuration, strictly escape or filter special characters so that input data remains legitimate and safe.
