Opened 8 years ago

Closed 5 years ago

#3765 closed defect (wontfix)

Banning doesn't work with weird nicknames

Reported by: elexis Owned by:
Priority: Nice to Have Milestone:
Component: Network Keywords:
Cc: Patch:

Description (last modified by elexis)

Users can mess with their nickname to prevent the host from kicking/banning them. The first letter of the nickname must be a character that the host can't type (hence autocomplete won't work).

The lobby already has some rules in place, testing for allowed characters. But when joining via IP, the nicknames can have leading whitespace and completely arbitrary characters (including combining operators which only modify the following character, messing up even the strings that show the names).

Thanks Hannibal Barca for investigating.

While the username could be sanitized when joining the match, it would prevent for example chinese users to play with chinese names. Better solve this issue by allowing to ban users by clicking on them in a new window. Internally, the GUID should be passed to the engine.

Change History (3)

comment:1 by elexis, 8 years ago

Component: Core engineNetwork

(set component to network)

comment:2 by elexis, 6 years ago

Description: modified (diff)

With lobby authentication in alpha 23, the problem now only exists if someone uses an account registered with a different xmpp client and weird characters. #3787 should make this obsolete altogether.

It may still be reasonable to add a default.cfg option to restrict playernames to certain charactersets. For example ascii-only, arab or asian characters and no restrictions.

comment:3 by elexis, 5 years ago

Milestone: Backlog
Resolution: wontfix
Status: newclosed

#3787 allows banning everyone by selecting.

It would be cleaner to pass a GUID instead of a playername nonetheless, but that is kind of self-evident, an enhancement and not a defect and unrelated to reported issue.

Note: See TracTickets for help on using tickets.