PT-2024-24090 · Unknown · Gin-Vue-Admin
Highpixelmaxqm
·
Published
2024-04-09
·
Updated
2024-05-20
·
CVE-2024-31457
CVSS v3.1
7.7
High
| Vector | AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
gin-vue-admin versions 2.6.1 and earlier
Description
The issue is a code injection vulnerability in the backend of gin-vue-admin, specifically in the Plugin System -> Plugin Template feature. An attacker can perform directory traversal by manipulating the
plugName parameter, allowing them to create specific folders and insert arbitrary code into Go files within those folders. The vulnerability exists due to the controllability of the plugName field within the struct.Recommendations
For gin-vue-admin version 2.6.1, update to a version that contains the patch for this issue, specifically pseudoversion 0.0.0-20240409100909-b1b7427c6ea6 or later.
As a temporary workaround for versions prior to the fixed version, consider using a filtering method to rectify the directory traversal problem, such as checking for the presence of ".." in the
plugPath variable.Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Gin-Vue-Admin