SASL: Disallow beginning : and space anywhere in AUTHENTICATE parameter
This is a FIX FOR A SECURITY VULNERABILITY. All Charybdis users must apply this fix if you support SASL on your servers, or unload m_sasl.so in the meantime.
This commit is contained in:
parent
86e1de17f3
commit
ac88154f94
1 changed files with 6 additions and 0 deletions
|
@ -143,6 +143,12 @@ m_authenticate(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *
|
|||
return;
|
||||
}
|
||||
|
||||
if (*parv[1] == ':' || strchr(parv[1], ' '))
|
||||
{
|
||||
exit_client(client_p, client_p, client_p, "Malformed AUTHENTICATE");
|
||||
return;
|
||||
}
|
||||
|
||||
saslserv_p = find_named_client(ConfigFileEntry.sasl_service);
|
||||
if(saslserv_p == NULL || !IsService(saslserv_p))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue