harden: connclass clone-cap at register, ws control-frame limits, uuid recycle-skip, json-escape extjwt/filehost claims, metadata value/key caps, cloak numeric-dotted leak, relaymsg remote-nick, rpc set_oper block validation, isupport 13-token split, multi-hop privmsg routing, connectdelay=0
This commit is contained in:
parent
e935ee7002
commit
35af95fd0f
11 changed files with 129 additions and 27 deletions
|
|
@ -56,7 +56,7 @@ impl Command for RelayMsg {
|
|||
);
|
||||
return CmdResult::Fail;
|
||||
}
|
||||
if s.find_nick(nick).is_some() {
|
||||
if s.find_nick(nick).is_some() || s.remote_nick.contains_key(&nick.to_ascii_lowercase()) {
|
||||
return bad(s, "RELAYMSG spoofed nick is already in use");
|
||||
}
|
||||
if nick.chars().any(|c| FORBIDDEN.contains(c)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue