Skip to content

User enumeration still possible through login error messages in Gitea 1.25.1 #35984

@d3struct1v3-create

Description

@d3struct1v3-create

Description

I noticed that user enumeration is still possible in Gitea version 1.25.1 through the login error messages.

When attempting authentication:

If the username does not exist -> Gitea returns: user does not exist
If the username exists but the password is wrong -> Gitea returns: user's password is invalid

This make it possible to reliably determine whether a username exists.

Gitea Version

1.25.1

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

  1. Attempt login with a non-existing username
  2. Attempt login with an existing username but wrong password

Git Version

No response

Operating System

No response

How are you running Gitea?

Locally on my machine

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions