Advisory

GO-2024-2702

Also known as: CVE-2024-31457, GHSA-gv3w-m57p-3wc4

Summary

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.

Severity

Not rated by the source.

Dates

Published
2024-05-20 19:45 UTC
Modified
2024-05-20 20:13 UTC

Affected packages and fixes

github.com/flipped-aurora/gin-vue-admin/server

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20240409100909-b1b7427c6ea6 (semver)

Fixed versions

0.0.0-20240409100909-b1b7427c6ea6

Fix

  • Fixed version 0.0.0-20240409100909-b1b7427c6ea6
    go get github.com/flipped-aurora/gin-vue-admin/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences