src/main/java/com/yeqifu/sys/controller/FileController.javashowImageByPath
The endpoint /file/showImageByPath accepts a user-supplied path parameter. This path is passed directly to AppFileUtils.createResponseEntity(path).

Following the createResponseEntity method reveals that it concatenates the base directory path with the user input using getChars into an array, without proper validation. This allows directory traversal sequences (e.g., ../), leading to arbitrary file download.

The endpoint route is /file/showImageByPath.
I created a test folder locally containing a file 1.txt.

Construct the payload:
http://127.0.0.1:9191/file/showImageByPath?path=../../../../../../../../../../../../test/1.txt
After logging into the locally deployed website, directly access:
/file/showImageByPath?path=../../../../../../../../../../../../test/1.txt

