Go Vulnerability Database
GO-2024-2702
Code injection vulnerability in github.com/flipped-aurora/gin-vue-admin/server
Details
Gin-vue-admin 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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/flipped-aurora/gin-vue-admin/server | All versions before 0.0.0-20240409100909-b1b7427c6ea6 (fixed in 0.0.0-20240409100909-b1b7427c6ea6) |