Chrome 136 marks /user/login?redirect_to=%2f as "Dangerous site" — does not occur in other browsers #14439

Closed
opened 2025-11-02 11:12:59 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @DimaFantasy on GitHub (May 2, 2025).

Description

Issue Summary

When accessing the login page at:
https://399221.ddns.net:3000/user/login?redirect_to=%2f
Google Chrome (Version: 136.0.7103.49, official build, 64-bit) shows a warning:

⚠️ Dangerous site — Attackers might trick you into installing software or revealing personal information such as passwords, phone numbers, or credit cards.
This behavior only occurs:

  • In Google Chrome desktop
  • On the login page only
  • With the above URL containing redirect_to=%2f
    Other pages (such as /explore, /user/repo, etc.) do not trigger the warning.
    Tested and confirmed not reproducible in:
  • Firefox (desktop)
  • Edge (desktop)
  • Chrome for Android

Notes

  • This is a test installation — the URL is temporary and may be taken down soon.
  • HTTPS and SSL certificates (Let's Encrypt) are valid and pass SSL Labs tests.
  • Cache and DNS were cleared; issue persists in incognito mode.

Question

Is it possible that the redirect_to=%2f parameter on the login URL is being flagged by Chrome's Safe Browsing?
Is there anything in Gitea's redirect logic that could be triggering this?

Browser: Google Chrome Version: 136.0.7103.49 (Official Build, 64-bit)
OS: Linux server with Gitea installed (test deployment)

Gitea Version

1.21.11

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Image

Git Version

No response

Operating System

No response

How are you running Gitea?

Gitea was installed manually using the official binary from gitea.io.
It is running as a system service via systemd on a Linux server.

Details:
Installation method: Manual (official Gitea binary)
Service manager: systemd
OS / Distro: Ubuntu 22.04 LTS
Database: SQLite (configured in /etc/gitea/app.ini)
Reverse proxy: No (accessed directly via port 3000 for testing)
HTTPS: Configured using Let's Encrypt certificate
Access URL: https://399221.ddns.net:3000/ (temporary test instance)

Database

None

Originally created by @DimaFantasy on GitHub (May 2, 2025). ### Description ### Issue Summary When accessing the login page at: [https://399221.ddns.net:3000/user/login?redirect_to=%2f](https://399221.ddns.net:3000/user/login?redirect_to=%2f) Google Chrome (Version: 136.0.7103.49, official build, 64-bit) shows a warning: > ⚠️ **Dangerous site** — Attackers might trick you into installing software or revealing personal information such as passwords, phone numbers, or credit cards. This behavior only occurs: - In **Google Chrome desktop** - On the **login page only** - With the above URL containing `redirect_to=%2f` Other pages (such as `/explore`, `/user/repo`, etc.) **do not trigger the warning**. Tested and confirmed not reproducible in: - Firefox (desktop) - Edge (desktop) - Chrome for Android --- ### Notes - This is a **test installation** — the URL is temporary and may be taken down soon. - **HTTPS and SSL certificates** (Let's Encrypt) are valid and pass SSL Labs tests. - **Cache and DNS were cleared**; issue persists in incognito mode. --- ### Question Is it possible that the `redirect_to=%2f` parameter on the login URL is being flagged by Chrome's Safe Browsing? Is there anything in Gitea's redirect logic that could be triggering this? --- **Browser:** Google Chrome Version: `136.0.7103.49` (Official Build, 64-bit) **OS:** Linux server with Gitea installed (test deployment) ### Gitea Version 1.21.11 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![Image](https://github.com/user-attachments/assets/4589cccd-4530-40ff-8a1d-2334aea6b801) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Gitea was installed manually using the official binary from [gitea.io](https://gitea.io/). It is running as a system service via systemd on a Linux server. Details: Installation method: Manual (official Gitea binary) Service manager: systemd OS / Distro: Ubuntu 22.04 LTS Database: SQLite (configured in /etc/gitea/app.ini) Reverse proxy: No (accessed directly via port 3000 for testing) HTTPS: Configured using Let's Encrypt certificate Access URL: https://399221.ddns.net:3000/ (temporary test instance) ### Database None
GiteaMirror added the issue/not-a-bug label 2025-11-02 11:12:59 -06:00
Author
Owner

@DimaFantasy commented on GitHub (May 2, 2025):

Update:
After my previous message, the "Dangerous site" warning in Google Chrome disappeared! The login page is now accessible without any issues.

The problem no longer occurs when visiting the login page with the same URL.

@DimaFantasy commented on GitHub (May 2, 2025): Update: After my previous message, the "Dangerous site" warning in Google Chrome disappeared! The login page is now accessible without any issues. The problem no longer occurs when visiting the login page with the same URL.
Author
Owner

@H0llyW00dzZ commented on GitHub (May 2, 2025):

I think it's because your domain 399221.ddns.net got flagged by Chrome, and it's not related to any bugs in this repo.

@H0llyW00dzZ commented on GitHub (May 2, 2025): I think it's because your domain `399221.ddns.net` got flagged by Chrome, and it's not related to any bugs in this repo.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14439