Youkefu Deserialization Vulnerability in TemplateController

Vulnerability

A deserialization vulnerability has been identified in Youkefu versions up to 4.2.0. The issue resides in the TemplateController.java file, specifically within the impsave function. The vulnerability is triggered by manipulating the dataFile parameter, leading to unsafe deserialization of data. This issue can be exploited remotely, and a public proof-of-concept exploit is available.

Impact

Exploitation of this vulnerability allows for unsafe deserialization, which could be leveraged to execute arbitrary code or cause other malicious effects, depending on the application's context and the deserialization payload used.

Reproduction

To reproduce this vulnerability, send a request to the /admin/template/imsave endpoint with a crafted dataFile parameter that exploits the deserialization flaw. The ysoserial tool can be used to generate a payload that takes advantage of this vulnerability, such as one that uses the URLDNS gadget to exfiltrate data.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
6.6
remediation
0.0
relevance
0.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.