Skip to content

huntr

gogs/gogs

Every publicly disclosed report for gogs/gogs and what kind of bugs they were.

disclosed reports
10
most reported class
RCE
bug classes found
6
first disclosure
2022
Find gogs/gogs on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what gogs/gogs chose to make public.

RCE

Gogs OS Command Injection vulnerability

Gogs did not properly sanitise upload paths to the .git directory on case-insensitive file systems, allowing a malicious user to upload a crafted config file and delete files to gain SSH access. All installations with repository upload enabled on such systems are affected.

gogs/gogs

Critical
Path traversal

Path Traversal in Git HTTP endpoints in Gogs

The Git HTTP endpoints in Gogs did not properly clean paths, allowing a malicious user to craft HTTP requests that access unauthorised Git directories. This could let an attacker reach Git repositories they should not be able to access.

gogs/gogs

High
RCE

OS Command Injection in file editor in Gogs

A malicious user could update a crafted config file in the repository's .git directory and combine it with crafted file deletion to gain SSH access to the server. All installations with repository upload enabled are affected.

gogs/gogs

Critical
SSRF

Server-Side Request Forgery in gogs webhook

Gogs did not revalidate webhook payload URLs before each delivery, so a malicious user could make the server send requests to internal network addresses. This allowed discovery of services on the internal network.

gogs/gogs

High
RCE

OS Command Injection in gogs

A malicious user could upload a crafted config file into a repository's .git directory, which on Windows installations with repository upload enabled could lead to SSH access to the server. The issue was fixed by prohibiting uploads to the .git directory.

gogs/gogs

Critical
XSS

Cross-site Scripting in Gogs

An attacker could upload a crafted SVG file as an issue attachment, which would execute script when viewed, leading to cross-site scripting. This affects installations that allow SVG uploads as issue attachments.

gogs/gogs

Medium
File upload

Unrestricted Upload of File with Dangerous Type in Gogs

Gogs allowed uploading a crafted config file into a repository's .git directory, which could give an attacker SSH access to the server. All installations with repository upload enabled (the default) were affected.

gogs/gogs

High
Access control

Gogs vulnerable to improper PAM authorization handling

Gogs installations using PAM for authentication treated expired PAM accounts and accounts with expired passwords as valid. An attacker with such an account could still log in despite the account being expired.

gogs/gogs

High
SSRF

SSRF in repository migration

Gogs allowed users to specify internal network addresses as repository migration targets, enabling server-side request forgery. An attacker could use this to discover services on the internal network.

gogs/gogs

Medium