Description
gin-vue-admin through 2.9.2 contains a path traversal vulnerability that allows authenticated administrators to recursively delete arbitrary directories by supplying traversal sequences in the pluginName parameter. Attackers can send a crafted POST request to /autoCode/removePlugin with '../' sequences, causing os.RemoveAll to delete any directory writable by the server process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| flipped-aurora | gin-vue-admin | ≤ 2.9.2 | — |
References
- GitHub Security Advisory (GHSA-mqv7-9mvf-h9fh) vendor-advisory
- https://github.com/flipped-aurora/gin-vue-admin/blob/v2.9.2-stable/server/service/system/auto_code_plugin.go#L371-L390 technical-description
- https://github.com/flipped-aurora/gin-vue-admin/blob/v2.9.2-stable/server/api/v1/system/auto_code_plugin.go#L209-L219 technical-description
- VulnCheck Advisory: gin-vue-admin through 2.9.2 Path Traversal via removePlugin Endpoint third-party-advisory