CVE-2024-31457: gin-vue-admin background arbitrary code coverage vulnerability
“gin-vue-admin<=v2.6.1 has a code injection vulnerability in the backend. In the Plugin System -> Plugin Template feature, an attacker can perform directory traversal by manipulating the ‘plugName’ parameter. They can create specific folders such as ‘api’, ‘config’, ‘global’, ‘model’, ‘router’, ‘service’, and ‘main.go’ function within the specified traversal directory. Moreover, the Go files within these folders can have arbitrary code inserted based on a specific PoC parameter.”
References
- github.com/advisories/GHSA-gv3w-m57p-3wc4
- github.com/flipped-aurora/gin-vue-admin
- github.com/flipped-aurora/gin-vue-admin/blob/746af378990ebf3367f8bb3d4e9684936df152e7/server/api/v1/system/sys_auto_code.go:239
- github.com/flipped-aurora/gin-vue-admin/commit/b1b7427c6ea6c7a027fa188c6be557f3795e732b
- github.com/flipped-aurora/gin-vue-admin/security/advisories/GHSA-gv3w-m57p-3wc4
- nvd.nist.gov/vuln/detail/CVE-2024-31457
- pkg.go.dev/github.com/flipped-aurora/gin-vue-admin/server?tab=versions
Detect and mitigate CVE-2024-31457 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →