Gogs.File.Upload.tree_path.Command.Injection

description-logoDescription

This indicates an attack attempt to exploit a Command Injection Vulnerability in Gogs.
The vulnerability is due to improper validation on the tree_path parameter when uploading files to a repository. A remote, authenticated attacker could exploit this vulnerability by sending a crafted request to the target server and overwriting the repository configuration file. Successful exploitation will result in arbitrary OS command execution on the target server.

affected-products-logoAffected Products

Gogs 0.12.5 and prior

Impact logoImpact

System Compromise: Remote attackers can gain control of vulnerable systems.

recomended-action-logoRecommended Actions

Apply the most recent upgrade or patch from the vendor.
https://github.com/gogs/gogs/security/advisories/GHSA-5gjh-5j4f-cpwv

Telemetry logoTelemetry

Coverage

IPS (Regular DB)
IPS (Extended DB)

Version Updates

Date Version Detail
2022-05-18 20.318 Default_action:pass:drop
2022-05-09 20.311