Skip to content

Commit

Permalink
fix(security) : fix a security issue introduced in 5.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
QHivert committed Oct 11, 2024
1 parent a466628 commit 04a9a87
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SoObjects/SOGo/SOGoUserManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -643,11 +643,15 @@ - (BOOL) checkLogin: (NSString *) _login
allowed = YES;

if([domainsKnown length] == 0 && [domainsAllowed length] == 0)
{
[self errorWithFormat: @"SOGoForbidUnknownDomainsAuth is set but sogo don't know any domains"];
return NO;
}
else if(!allowed)
{
[self errorWithFormat: @"User domain is unknown or not allowed: %@", userDomain];

return allowed;
return NO;
}
}

// We check the fail count per user in memcache (per server). If the
Expand Down

0 comments on commit 04a9a87

Please sign in to comment.