PT-2023-3543 · 1Panel · 1Panel

Wanghe-Fit2Cloud

·

Published

2023-06-21

·

Updated

2024-08-20

·

CVE-2023-36457

CVSS v2.0

9.0

High

VectorAV:N/AC:L/Au:S/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions 1Panel versions prior to 1.3.6
Description The issue is related to command injection when adding container repositories. An authenticated attacker can craft a malicious payload to achieve this. The vulnerability is due to the lack of proper neutralization of special elements used in the operating system command. This can allow a remote attacker to execute arbitrary commands.
Recommendations For versions prior to 1.3.6, upgrade to version 1.3.6 to fix the vulnerability. As a temporary workaround, consider restricting access to the backendappapiv1image repo.go#create and backendappserviceimage repo.go#CheckConn functions until the patch is applied. Avoid using the username parameter in the affected API endpoint /api/v1/containers/repo until the issue is resolved.

Exploit

Fix

Special Elements Injection

Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2023-03757
CVE-2023-36457
GHSA-Q2MX-GPJF-3H8X
GO-2023-1887

Affected Products

1Panel