GHSA-m5mf-3963-4x26

Suggest an improvement
Source
https://github.com/advisories/GHSA-m5mf-3963-4x26
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/02/GHSA-m5mf-3963-4x26/GHSA-m5mf-3963-4x26.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m5mf-3963-4x26
Aliases
Published
2025-02-19T17:47:47Z
Modified
2025-03-03T19:42:02.100749Z
Severity
  • 2.3 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
Authelia applies regulation separately to Username-based logins to Email-based logins
Details

Summary

If users are allowed to sign in via both username and email the regulation system treats these as separate login events. This leads to the regulation limitations being effectively doubled assuming an attacker using brute-force to find a user password. It's important to note that due to the effective operation of regulation where no user-facing sign of their regulation ban being visible either via timing or via API responses, it's effectively impossible to determine if a failure occurs due to a bad username password combination, or a effective ban blocking the attempt which heavily mitigates any form of brute-force.

Details

This occurs because the records and counting process for this system uses the method utilized for sign in rather than the effective username attribute.

Impact

This has a minimal impact on account security, this impact is increased naturally in scenarios when there is no two-factor authentication required and weak passwords are used. This makes it a bit easier to brute-force a password.

Workarounds

  1. Do not heavily modify the default settings in a way that ends up with shorter or less frequent regulation bans. The default settings effectively mitigate any potential for this issue to be exploited.
  2. Disable the ability for users to login via an email address.
Database specific
{
    "nvd_published_at": "2025-02-19T18:15:24Z",
    "cwe_ids": [
        "CWE-307"
    ],
    "severity": "LOW",
    "github_reviewed": true,
    "github_reviewed_at": "2025-02-19T17:47:47Z"
}
References

Affected packages

Go / github.com/authelia/authelia/v4

Package

Name
github.com/authelia/authelia/v4
View open source insights on deps.dev
Purl
pkg:golang/github.com/authelia/authelia/v4

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.38.19