Affected by GO-2022-0369
and 17 other vulnerabilities
GO-2022-0369: Gogs vulnerable to improper PAM authorization handling in gogs.io/gogs
GO-2022-0473: Cross site scripting via cookies in gogs in gogs.io/gogs
GO-2022-0483: Cross-site Scripting vulnerability in repository issue list in Gogs in gogs.io/gogs
GO-2022-0554: Unrestricted Upload of File with Dangerous Type in Gogs in gogs.io/gogs
GO-2022-0556: OS Command Injection in file editor in Gogs in gogs.io/gogs
GO-2022-0562: Path Traversal in Git HTTP endpoints in Gogs in gogs.io/gogs
GO-2022-0570: Path Traversal in file editor on Windows in Gogs in gogs.io/gogs
GO-2022-0583: Server-Side Request Forgery in gogs webhook in gogs.io/gogs
GO-2022-1060: Gogs vulnerable to Cross-site Scripting in gogs.io/gogs
GO-2023-1596: Gogs OS Command Injection vulnerability in gogs.io/gogs
GO-2024-3275: Unpatched Remote Code Execution in Gogs in gogs.io/gogs
GO-2024-3355: Remote Command Execution in file editing in gogs in gogs.io/gogs
GO-2024-3356: Path Traversal in file update API in gogs in gogs.io/gogs
package
Version:
v0.12.2
Opens a new window with list of versions in this module.
Published: Sep 26, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
- Constants
- Variables
-
func Add(desc string, cmd *exec.Cmd) int64
-
func Exec(desc, cmdName string, args ...string) (string, string, error)
-
func ExecDir(timeout time.Duration, dir, desc, cmdName string, args ...string) (string, string, error)
-
func ExecTimeout(timeout time.Duration, desc, cmdName string, args ...string) (string, string, error)
-
func Kill(pid int64) error
-
func Remove(pid int64) bool
-
type Process
Add adds a process to global list and returns its PID.
Exec starts executing a shell command, it tracks corresponding its process and use default timeout.
Exec starts executing a shell command in given path, it tracks corresponding process and timeout.
Exec starts executing a shell command, it tracks corresponding process and timeout.
Kill kills and removes a process from global list.
Remove removes a process from global list.
It returns true if the process is found and removed by given pid.
Process represents a running process calls shell command.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.