Command Injection Affecting gogs.io/gogs/internal/db Open this link in a new tab package, versions <0.12.9
Proof of concept
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.Test your applications
9 Jun 2022
8 Jun 2022
How to fix?
gogs.io/gogs/internal/db to version 0.12.9 or higher.
Affected versions of this package are vulnerable to Command Injection in the file editor, by uploading a specially crafted
config file into the repository
.git directory. Exploiting this vulnerability is possible when the attacker deletes the original
./git/config file and replace it with the crafted one.