CVE-2014-8682
Gogits Gogs vulnerability
Multiple SQL injection vulnerabilities in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.x before 0.5.6.1105 Beta allow remote attackers to execute arbitrary SQL commands via the q parameter to (1) api/v1/repos/search, which is not properly handled in models/repo.go, or (2) api/v1/users/search, which is not properly handled in models/user.go.
Affected products
Gogs. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gogits Gogs runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- packetstormsecurity.com/files/129117/Gogs-Repository-Search-SQL-Injection.html · Exploit
- seclists.org/fulldisclosure/2014/Nov/33 · Exploit
- www.exploit-db.com/exploits/35238 · Exploit
- www.securityfocus.com/bid/71187 · Exploit
- github.com/gogits/gogs/commit/0c5ba4573aecc9eaed669e9431a70a5d9f184b8d · Exploit
- gogs.io/docs/intro/change_log.html
- www.securityfocus.com/archive/1/533995/100/0/threaded
- exchange.xforce.ibmcloud.com/vulnerabilities/98694
- nvd.nist.gov/vuln/detail/CVE-2014-8682
- cve.org/CVERecord?id=CVE-2014-8682
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.