Affected by GO-2022-0471
and 12 other vulnerabilities
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-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.8-rc.1
Opens a new window with list of versions in this module.
Published: May 31, 2022
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Migrate database to current version
type TAccessToken struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
type TAction struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
}
type TAttachment struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
}
type TDeployKey struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
type TIssue struct {
ID int64 `xorm:"pk autoincr"`
DeadlineUnix int64
CreatedUnix int64
UpdatedUnix int64
}
type TLoginSource struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
type TMilestone struct {
ID int64 `xorm:"pk autoincr"`
DeadlineUnix int64
ClosedDateUnix int64
}
type TMirror struct {
ID int64 `xorm:"pk autoincr"`
UpdatedUnix int64
NextUpdateUnix int64
}
type TNotice struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
}
type TPublicKey struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
type TPull struct {
ID int64 `xorm:"pk autoincr"`
MergedUnix int64
}
type TRelease struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
}
type TRepo struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
type TUser struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
type TWebhook struct {
ID int64 `xorm:"pk autoincr"`
CreatedUnix int64
UpdatedUnix int64
}
The version table. Should have only one row with id==1
Source Files
¶
Click to show internal directories.
Click to hide internal directories.