Bad, and possibly unsafe usernames #849

Closed
opened 2025-11-02 03:38:57 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @pgaskin on GitHub (Jun 26, 2017).

If you create a user, and rename it to one of the following:

  • %2f. It redirects you to https://. when someone tries to view your profile
  • %2f.. It redirects you to https://.. when someone tries to view your profile
  • %2f* 404 when someone tries to view your profile
  • %00 It redirects you to a blank page when someone tries to view your profile

These have been tested in opera and chrome.

Originally created by @pgaskin on GitHub (Jun 26, 2017). If you create a user, and rename it to one of the following: - `%2f.` It redirects you to `https://.` when someone tries to view your profile - `%2f..` It redirects you to `https://..` when someone tries to view your profile - `%2f*` 404 when someone tries to view your profile - `%00` It redirects you to a blank page when someone tries to view your profile These have been tested in opera and chrome.
GiteaMirror added the issue/criticaltype/bug labels 2025-11-02 03:38:57 -06:00
Author
Owner

@pgaskin commented on GitHub (Jun 27, 2017):

I think the username needs to be filtered for percent signs

@pgaskin commented on GitHub (Jun 27, 2017): I think the username needs to be filtered for percent signs
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#849