CVE-2022-30427
vulnerability analysis and mitigation

Overview

CVE-2022-30427 affects ginadmin through version 05-10-2022. The vulnerability is a directory traversal issue where the incoming path value in the adminSystemController.go file is not properly filtered, allowing potential unauthorized access to directories (NVD, GitHub Issue).

Technical details

The vulnerability exists in the internal/controllers/admin/setting/adminSystemController.go file at line 83. The application directly uses the unfiltered path parameter from c.Query("path") to construct filesystem paths, which can lead to directory traversal. The CVSS v3.1 base score is 7.5 (HIGH) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. The weakness is categorized as CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (NVD).

Impact

The vulnerability allows attackers to access directories outside of the intended directory structure through path traversal. This can lead to unauthorized access to sensitive files and information disclosure on the affected system (NVD).

Mitigation and workarounds

The vulnerability affects ginadmin versions through 05-10-2022. Users should update to a patched version if available. As a workaround, implement proper input validation and sanitization for the path parameter before using it in filesystem operations (NVD).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management