PT-2014-8682 · Gogs · Gogs

Publicado

2014-11-21

·

Atualizado

2024-08-21

·

CVE-2014-8682

CVSS v2.0

7.5

Alta

VetorAV:N/AC:L/Au:N/C:P/I:P/A:P
Name of the Vulnerable Software and Affected Versions Gogs versions 0.3.1-9 through 0.5.x before 0.5.6.1105 Beta
Description The issue allows remote attackers to execute arbitrary SQL commands. This can be achieved via the q parameter to two API endpoints: "api/v1/repos/search" and "api/v1/users/search". The "api/v1/repos/search" endpoint is not properly handled in models/repo.go, while the "api/v1/users/search" endpoint is not properly handled in models/user.go.
Recommendations For versions 0.3.1-9 through 0.5.x before 0.5.6.1105 Beta, update to version 0.5.6.1105 Beta or later to resolve the issue. As a temporary workaround, consider restricting access to the "api/v1/repos/search" and "api/v1/users/search" endpoints to minimize the risk of exploitation. Avoid using the q parameter in these affected API endpoints until the issue is resolved.

Exploit

Correção

SQL injection

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

CVE-2014-8682
GHSA-G6XV-8Q23-W2Q3
GO-2022-0831

Produtos afetados

Gogs