Affected by GO-2023-1887
and 8 other vulnerabilities
GO-2023-1887 : 1Panel vulnerable to command injection when adding container repositories in github.com/1Panel-dev/1Panel
GO-2023-1888 : 1Panel vulnerable to command injection when entering the container terminal in github.com/1Panel-dev/1Panel
GO-2023-1940 : 1Panel command injection vulnerability in Firewall ip functionality in github.com/1Panel-dev/1Panel
GO-2024-2531 : 1Panel set-cookie is missing the Secure keyword in github.com/1Panel-dev/1Panel
GO-2024-2613 : Unauthorized Console access in github.com/1Panel-dev/1Panel
GO-2024-2636 : 1Panel is vulnerable to command injection in github.com/1Panel-dev/1Panel
GO-2024-2734 : 1Panel's password verification is suspected to have a timing attack vulnerability in github.com/1Panel-dev/1Panel
GO-2024-2990 : 1Panel has an SQL injection issue related to the orderBy clause in github.com/1Panel-dev/1Panel
GO-2024-2992 : 1Panel SQL injection in github.com/1Panel-dev/1Panel
Discover Packages
github.com/1Panel-dev/1Panel
backend
app
dto
response
package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Mar 24, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AppDetailDTO struct {
model .AppDetail
Enable bool `json:"enable"`
Params interface{} `json:"params"`
}
type AppInstalledCheck struct {
IsExist bool `json:"isExist"`
Name string `json:"name"`
App string `json:"app"`
Version string `json:"version"`
Status string `json:"status"`
CreatedAt time .Time `json:"createdAt"`
LastBackupAt string `json:"lastBackupAt"`
AppInstallID uint `json:"appInstallId"`
ContainerName string `json:"containerName"`
InstallPath string `json:"installPath"`
}
type AppInstalledDTO struct {
model .AppInstall
Total int `json:"total"`
Ready int `json:"ready"`
AppName string `json:"appName"`
Icon string `json:"icon"`
CanUpdate bool `json:"canUpdate"`
}
type AppParam struct {
Value interface{} `json:"value"`
Edit bool `json:"edit"`
Key string `json:"key"`
Rule string `json:"rule"`
LabelZh string `json:"labelZh"`
LabelEn string `json:"labelEn"`
Type string `json:"type"`
Values interface{} `json:"values"`
ShowValue string `json:"showValue"`
}
type AppRes struct {
Items []*AppDTO `json:"items"`
Total int64 `json:"total"`
}
type AppService struct {
Label string `json:"label"`
Value string `json:"value"`
Config interface{} `json:"config"`
}
type AppUpdateRes struct {
Version string `json:"version"`
CanUpdate bool `json:"canUpdate"`
DownloadPath string `json:"downloadPath"`
}
type DirSizeRes struct {
Size float64 `json:"size" validate:"required"`
}
type FileProcessKeys struct {
Keys []string `json:"keys"`
}
type FileTree struct {
ID string `json:"id"`
Name string `json:"name"`
Path string `json:"path"`
Children []FileTree `json:"children"`
}
type FileWgetRes struct {
Key string `json:"key"`
}
type NginxParam struct {
Name string `json:"name"`
Params []string `json:"params"`
}
type NginxStatus struct {
Active string `json:"active"`
Accepts string `json:"accepts"`
Handled string `json:"handled"`
Requests string `json:"requests"`
Reading string `json:"reading"`
Writing string `json:"writing"`
Waiting string `json:"waiting"`
}
type UploadInfo struct {
Name string `json:"name"`
Size int `json:"size"`
CreatedAt string `json:"createdAt"`
}
type WebsiteDNSRes struct {
Key string `json:"resolve"`
Value string `json:"value"`
Domain string `json:"domain"`
Err string `json:"err"`
}
type WebsiteDTO struct {
model .Website
ErrorLogPath string `json:"errorLogPath"`
AccessLogPath string `json:"accessLogPath"`
SitePath string `json:"sitePath"`
AppName string `json:"appName"`
}
type WebsiteHTTPS struct {
Enable bool `json:"enable"`
HttpConfig string `json:"httpConfig"`
SSL model .WebsiteSSL `json:"SSL"`
SSLProtocol []string `json:"SSLProtocol"`
Algorithm string `json:"algorithm"`
}
type WebsiteLog struct {
Enable bool `json:"enable"`
Content string `json:"content"`
}
type WebsiteNginxConfig struct {
Enable bool `json:"enable"`
Params []NginxParam `json:"params"`
}
type WebsitePreInstallCheck struct {
Name string `json:"name"`
Status string `json:"status"`
Version string `json:"version"`
AppName string `json:"appName"`
}
type WebsiteWafConfig struct {
Enable bool `json:"enable"`
FilePath string `json:"filePath"`
Content string `json:"content"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.