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

Input not sanitised from IRC when relayed to minecraft clients, leading to denial of service #32

Closed
Wack0 opened this issue Oct 25, 2012 · 4 comments
Assignees
Milestone

Comments

@Wack0
Copy link

Wack0 commented Oct 25, 2012

So, this plugin just blindly sends privmsg's from irc to minecraft clients, without sanitisation for when the § character (0xa7) is at the end of a line.

Also, as the & character is replaced with 0x00a7, denial of service can be caused by 0x26 at the end of a line too.

This is a bigger issue because IRC is converting to UTF-8, and.. a lot of UTF-8 encoded characters end in 0xa7 -- here is an incomplete list of characters, which when UTF-8 encoded end in 0xa7: ç, ħ, ŧ, Ƨ, ǧ, ȧ, ɧ, ʧ, ˧, ̧,, ͧ, Χ, ϧ, Ч, ѧ, ҧ, ӧ, ԧ -- and there are probably plenty, PLENTY more, especially when 0x26 is taken into account. When §, &, or any of these aforementioned characters are at the end of a line, the minecraft server will crash when receiving them (therefore causing denial of service), and obviously this can be in PM as well as in a channel, and therefore in a PM it would be pretty well undetectable as to whom is causing denial of service.

@Wack0
Copy link
Author

Wack0 commented Oct 25, 2012

tl;dr: remove "§" from the end of a line, otherwise malicious IRC users can use this character (and the & character) to cause denial of service via minecraft client crash, either to individual users in PM, or to several users in a channel. (and this could also be done accidentally, for example "§" is next to "1" on some apple keyboards, for example)

@ghost ghost assigned hef Nov 3, 2012
@hef
Copy link
Owner

hef commented Nov 3, 2012

This does not appear to be broken for me on craftbukkit 1.4.2-R0.1 with IRCTransport 0.13.0.

Perhaps this is a bug on a different version?

@Wack0
Copy link
Author

Wack0 commented Nov 3, 2012

Yes, craftbukkit 1.2.5-R4.1 with IRCTransport 0.13.0 is affected, at least.
In case you need more info, irctransport is set to use cgiirc mode.

@hef
Copy link
Owner

hef commented Apr 22, 2013

This doesn't seem to affect the latest released version of minecraft or craftbukkit. If this continues to be an issue, feel free to reopen this issue.

@hef hef closed this as completed Apr 22, 2013
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

2 participants