Skip to content

DoS ircdkit crashes if netcat touches it #1

@ghost

Description

An example ircdkit server can be crashed by using netcat.

leet haker

$ netcat localhost 6667
^C
$

servar

~/node_modules/ircdkit/lib/index.js:28
		if (client._socket) throw new Error('Cannot remove a connection with an active socket.');
		                    ^

Error: Cannot remove a connection with an active socket.
    at removeClient (~/node_modules/ircdkit/lib/index.js:28:29)
    at EventEmitter.<anonymous> (~/node_modules/ircdkit/lib/index.js:50:4)
    at emitOne (events.js:116:13)
    at EventEmitter.emit (events.js:211:7)
    at Socket.<anonymous> (~/node_modules/ircdkit/lib/connection.js:77:15)
    at emitNone (events.js:111:20)
    at Socket.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Is there a way to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions