mirror of
https://github.com/dataease/dataease.git
synced 2026-06-12 08:21:09 +08:00
fix: 修复任意文件上传漏洞
This commit is contained in:
@@ -65,7 +65,7 @@ public class PluginService {
|
||||
}
|
||||
|
||||
private void checkFileName(String fileName){
|
||||
if(StringUtils.isEmpty(fileName) || !fileName.endsWith(".jar") || fileName.contains("../")){
|
||||
if(StringUtils.isEmpty(fileName) || !fileName.endsWith(".zip") || fileName.contains("../")){
|
||||
DataEaseException.throwException("非法的文件名: " + fileName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user