Browser/Javascript POST attack

News about the UnrealIRCd project, including release announcements
Post Reply
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Browser/Javascript POST attack

Post by Syzop »

Just wanted to drop a note that if anyone is experiencing problems like this (also called Firefox XPS IRC Attack). Then this is what I suggest you do:
1. If not done so already, then compile UnrealIRCd with NOSPOOF (spoof protection) enabled, on *NIX this is the first question asked during ./Config, on Windows it is always enabled.
2. I've released a nopost module which will kill/zline/etc such connections. http://www.vulnscan.org/UnrealIRCd/modu ... ost.tar.gz
You can do #2 without #1, and #1 without #2, but if you're really under attack then combining them is most effective.
MightyWings
Posts: 20
Joined: Fri Feb 26, 2010 12:06 pm
Location: Portadown, Northern Ireland
Contact:

Re: Browser/Javascript POST attack

Post by MightyWings »

Thank you for posting this, Syzop.

My network hasn't had this problem yet,
but one can't be to careful. Thank you,
for creating the module as well. :)

MightyWings
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: Browser/Javascript POST attack

Post by katsklaw »

If I'm not mistaken the /close command would help too as it closes all unknown connections. So if I'm correct, issuing a /close command after a /rehash and loading the module should clean things up.

Perhaps someone that knows for sure can verify my statement.
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Browser/Javascript POST attack

Post by Stealth »

CLOSE will only help if you have NOSPOOF enabled and there are a bunch of these connections stuck in user registration. Also, just loading the module will catch new connections and the old ones will time out after the user registration timeout (IIRC it's 30 seconds)
transacid
Posts: 0
Joined: Mon Mar 01, 2010 8:14 am

Re: Browser/Javascript POST attack

Post by transacid »

I see alot of

Code: Select all

[nopost] Killed connection from 207.46.195.226
That's a msn bot. Why would msn index irc?
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Browser/Javascript POST attack

Post by Jobe »

transacid wrote:I see alot of

Code: Select all

[nopost] Killed connection from 207.46.195.226
That's a msn bot. Why would msn index irc?
Well given that it triggered the [nopost] notice this suggests that somewhere there is a url directed at your IRC server:port that the bot/crawler followed as the only way [nopost] notices are triggered with the nopost module is if the IRCd receives a "POST" "GET" or "PUT" command.
transacid
Posts: 0
Joined: Mon Mar 01, 2010 8:14 am

Re: Browser/Javascript POST attack

Post by transacid »

Also the config doesn't seem to work. I get

Code: Select all

*** Notice -- error: unrealircd.conf:949: unknown directive set::nopost
If i dun use the setting at all it works fine.
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Browser/Javascript POST attack

Post by Syzop »

transacid wrote:Also the config doesn't seem to work. I get

Code: Select all

*** Notice -- error: unrealircd.conf:949: unknown directive set::nopost
If i dun use the setting at all it works fine.
My bad. I've updated the module to fix this (url still the same).

As for the MSN bot, I (obviously) don't know the MSN bot internals, but it somehow thinks your IRC server is a website :)
transacid
Posts: 0
Joined: Mon Mar 01, 2010 8:14 am

Re: Browser/Javascript POST attack

Post by transacid »

Syzop wrote:
transacid wrote:Also the config doesn't seem to work. I get

Code: Select all

*** Notice -- error: unrealircd.conf:949: unknown directive set::nopost
If i dun use the setting at all it works fine.
My bad. I've updated the module to fix this (url still the same).

As for the MSN bot, I (obviously) don't know the MSN bot internals, but it somehow thinks your IRC server is a website :)
Ok thanks, this one works fine ;)
transacid
Posts: 0
Joined: Mon Mar 01, 2010 8:14 am

Re: Browser/Javascript POST attack

Post by transacid »

oh btw, now i dun see any logmessages anymore :/
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Browser/Javascript POST attack

Post by Syzop »

What settings do you use?
I get a message both with kill and with gline (though with anything other than kill it's like '*** G:Line added for ...... the reason..', and not a 'killed connection ..' as well, as that would seem a bit redundant)
transacid
Posts: 0
Joined: Mon Mar 01, 2010 8:14 am

Re: Browser/Javascript POST attack

Post by transacid »

Syzop wrote:What settings do you use?
I get a message both with kill and with gline (though with anything other than kill it's like '*** G:Line added for ...... the reason..', and not a 'killed connection ..' as well, as that would seem a bit redundant)
oh nevermind. Didn't check my snomask ;) Everything good now.
Post Reply