[PR #4312] [MERGED] Fix open redirect vulnerability on login screen #17327

Closed
opened 2025-11-02 12:32:40 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4312
Author: @jonasfranz
Created: 6/25/2018
Status: Merged
Merged: 6/26/2018
Merged by: @lunny

Base: masterHead: fix-open-redirect


📝 Commits (4)

  • b49ee5d Fix open redirect vulnerability on login screen
  • 3d722b7 Reorder imports
  • fff3256 Replace www. from Domain too
  • 3913603 Merge branch 'master' into fix-open-redirect

📊 Changes

3 files changed (+50 additions, -1 deletions)

View changed files

📝 modules/util/util.go (+13 -0)
📝 modules/util/util_test.go (+35 -0)
📝 routers/user/auth.go (+2 -1)

📄 Description

Fix #4307 by checking if URL is external before redirecting.

Affected:

  • 2FA
  • U2F
  • Normal login

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/4312 **Author:** [@jonasfranz](https://github.com/jonasfranz) **Created:** 6/25/2018 **Status:** ✅ Merged **Merged:** 6/26/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix-open-redirect` --- ### 📝 Commits (4) - [`b49ee5d`](https://github.com/go-gitea/gitea/commit/b49ee5d4dab1299222bc683a6d5873d8b0e41529) Fix open redirect vulnerability on login screen - [`3d722b7`](https://github.com/go-gitea/gitea/commit/3d722b7edce914036691434e11007d879cfcd0f8) Reorder imports - [`fff3256`](https://github.com/go-gitea/gitea/commit/fff3256339a4f0ca3ab9a7ad8c2aa960412558b5) Replace www. from Domain too - [`3913603`](https://github.com/go-gitea/gitea/commit/39136034bfb2b72f9c11278cab4e12ca5c9d7e44) Merge branch 'master' into fix-open-redirect ### 📊 Changes **3 files changed** (+50 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `modules/util/util.go` (+13 -0) 📝 `modules/util/util_test.go` (+35 -0) 📝 `routers/user/auth.go` (+2 -1) </details> ### 📄 Description Fix #4307 by checking if URL is external before redirecting. Affected: * 2FA * U2F * Normal login --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:32:40 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17327