Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document \0 filter in checker results? #153

Open
Trolldemorted opened this issue Jun 4, 2021 · 5 comments
Open

document \0 filter in checker results? #153

Trolldemorted opened this issue Jun 4, 2021 · 5 comments

Comments

@Trolldemorted
Copy link
Member

Strictly speaking we are now changing the checker results (message, attackInfo) before they reach the user. This might be unexpected for checker authors who rely on obscure strings.

@DanielHabenicht
Copy link
Contributor

Or we should specify it as a TENET, that they should not include \0

@Savallator
Copy link
Contributor

Seriously, allowing \0 in strings is just calling for problems, and imho any checker author depending on something obscure like that should reconsider his life choices...

@Trolldemorted
Copy link
Member Author

Seriously, allowing \0 in strings is just calling for problems, and imho any checker author depending on something obscure like that should reconsider his life choices...

Sure, but I'd like to tell them that right away :)

Maybe just dropping the string, logging an error and considering it a checker error is the sanest approach?

@Savallator
Copy link
Contributor

One important point is here that we should make clear that player-generated stuff never ends up there.
I can imagine checker authors doing stuff like dumping usernames or whatever there, and then a malicious player can make other services checker-error.

@Savallator
Copy link
Contributor

Maybe we should just strip the \0 bytes, and continue without error?
Because exploit mechanics might indeed requiere \0 bytes in stuff like usernames or whatever sometimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants