CVE-2022-32177CWE-434

Gin-vue-admin - Unrestricted File Upload

Critical · published October 14, 2022

CVSS v3.1
9.0
EPSS
1%
Percentile
69.6
In the wild
Unconfirmed
What it is

🔥 A single unrestricted file upload is all it takes to play puppet master! This vulnerability in Gin-Vue-Admin allows attackers to execute malicious code through the Media Library. 😱 Think of it like a sneaky delivery person who slips a strange package into your office, and when you open it, it unleashes all sorts of chaos! Instead of gifts, it's actually a trap that lets the intruder access your office's secrets. An attacker with low privileges can upload a crafty file, and upon viewing it, the admin’s cookie gets snatched away! This means they could easily take over the admin's account and wreak havoc—talk about an absolute disaster!

Put simply

Think of it like a sneaky delivery person who slips a strange package into your office, and when you open it, it unleashes all sorts of chaos! Instead of gifts, it's actually a trap that lets the intruder access your office's secrets. This Unrestricted File Upload vulnerability allows users to upload executable JavaScript files through the 'Normal Upload' functionality in the Media Library, leading to potential remote code execution when an admin views the file.

What to do

An attacker with low privileges can upload a crafty file, and upon viewing it, the admin’s cookie gets snatched away! This means they could easily take over the admin's account and wreak havoc—talk about an absolute disaster! Patch Gin-Vue-Admin to version 2.5.4 or later immediately to close this loophole. Additionally, implement strict file validation to ensure only allowed file types can be uploaded. Don't forget to educate your team on security best practices! You’ve got this! By taking these steps, you’ll turn your setup into a fortress. 🛡️

The record
Technical detail
CVSS v3.1
9.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01270 · 69.6th percentile
Weakness
CWE-434 · Unrestricted Upload of File with Dangerous Type
Published
2022-10-14T07:00Z
EPSS history
Timeline
  • 14 OCT 07:00Z
    Gin-vue-admin - Unrestricted File Upload
    cvelistv5