GitHub Advisoryadvisory · Go

GHSA-5grx-v727-qmq6 1Panel has an SQL injection issue related to the orderBy clause

CRITICAL Published 2024-07-18 Modified 2024-07-24 Official page ↗
Aliases
CVE-2024-39907
Ecosystem
Go
Packages
github.com/1Panel-dev/1Panel
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-89
Reviewed
2024-07-18

Affected packages

• Go github.com/1Panel-dev/1Panel: < 1.10.12-tls → fixed in 1.10.12-tls

Description

Summary There are many sql injections in the project, and some of them are not well filtered, leading to arbitrary file writes, and ultimately leading to RCEs. The proof is as follows Details (one of them ) PoC curl 'http://api:30455/api/v1/hosts/command/search' {"page":1,"pageSize":10,"groupID":0,"orderBy":"3","order":"ascending","name":"a"} for example as picture . just change orderby‘s num we can know How many columns does the data table have.Parameters require strict whitelist filtering Impact RCE、data leak.

Related

Alias · CVE (1)

  • CVE-2024-39907 1Panel is a web-based linux server management control panel. vulnerability

Weakness · CWE (1)

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness

References