fix(security): protect system app and task file boundaries

This commit is contained in:
whyour committed 2026-11-03 09:32:40 +08:00
1 parent 487b213dd8
commit b49b0b63e6
6 files changed
+52 -3

No files matched your search

+1 -1
View File
@@ -8,6 +8,6 @@ export default class LogService {
constructor(@Inject('logger') private logger: winston.Logger) {}
public checkFilePath(filePath: string, fileName: string) {
return resolveFileAccess(config.logPath, [filePath || '', fileName]);
return resolveFileAccess(config.logPath, [filePath || '', fileName], ['.tmp']);
}
}