Dromara dataCompare JDBC URL Injection Vulnerability in DbConfig Function

Vulnerability

A critical injection vulnerability has been identified in Dromara dataCompare versions through 1.0.1. The issue arises in the DbConfig function within the DbconfigServiceImpl.java file, part of the JDBC URL Handler component. The vulnerability allows attackers to manipulate the JDBC URL by injecting harmful connection parameters. This exploitation can be executed remotely and may lead to arbitrary file reading, server-side request forgery (SSRF), or deserialization-based remote code execution.

Impact

Exploitation of this vulnerability could result in arbitrary file read, SSRF, or deserialization-based remote code execution.

Reproduction

To reproduce this vulnerability, log into the application and access the API endpoint '/system/dbconfig/testConnection'. During this request, inject a crafted JDBC connection that includes malicious parameters such as 'allowLoadLocalInfile', 'allowUrlInLocalInfile', and 'autoDeserialize'.

Added: Nov 17, 2025, 8:20 AM
Updated: Nov 17, 2025, 8:20 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.8
exploitability
6.6
remediation
0.0
relevance
1.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.