🔒 Potential data export disclosure security vulnerability

This commit is contained in:
Daniel 2024-08-08 10:56:31 +08:00
parent 9db7b49037
commit f8374201de
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -172,7 +172,8 @@ func rewritePortJSON(pid, port string) {
}
func serveExport(ginServer *gin.Engine) {
ginServer.Static("/export/", filepath.Join(util.TempDir, "export"))
exportGroup := ginServer.Group("/export/", model.CheckAuth)
exportGroup.Static("/", filepath.Join(util.TempDir, "export"))
}
func serveWidgets(ginServer *gin.Engine) {