Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal/controllers/admin/setting/adminSystemController.go line 83 ,c.Query("path") the incoming path value is not filtered, resulting in directory traversal.
internal/controllers/admin/setting/adminSystemController.go
c.Query("path")
path = gstrings.JoinStr(configs.RootPath, c.Query("path")) files, err = ioutil.ReadDir(path) if err != nil { con.Error(c, "获取目录失败") return }
http://ip:port/admin/setting/system/getdir?path=
The text was updated successfully, but these errors were encountered:
fix:issues #8 #9
726109f
You're right.,this bug has been fixed
Sorry, something went wrong.
No branches or pull requests
Vulnerability file address
internal/controllers/admin/setting/adminSystemController.goline 83 ,c.Query("path")the incoming path value is not filtered, resulting in directory traversal.POC
http://ip:port/admin/setting/system/getdir?path=
Attack results pictures
The text was updated successfully, but these errors were encountered: