PT-2014-8681 · Go · Gogs
Pascal Turbing
+1
·
Published
2014-11-21
·
Updated
2021-06-29
·
CVE-2014-8681
CVSS v2.0
7.5
High
| Vector | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Name of the Vulnerable Software and Affected Versions
Gogs (aka Go Git Service) versions 0.3.1-9 through 0.5.6.x
Description
The issue is related to a SQL injection vulnerability. It allows remote attackers to execute arbitrary SQL commands via the
label parameter to user/repos/issues. The vulnerability is due to improper sanitization of user input, making certain methods vulnerable to SQL injection if used with unsanitized user input.Recommendations
For Gogs (aka Go Git Service) versions 0.3.1-9 through 0.5.6.x, update to version 0.5.6.1025 Beta or later to resolve the issue. As a temporary workaround, consider sanitizing user input before passing it to vulnerable methods, such as the GetIssues function in models/issue.go. Restrict access to the
label parameter in the user/repos/issues endpoint to minimize the risk of exploitation.Exploit
Fix
SQL injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Gogs