Urban Terror Forums: q3a server vulnerability - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

q3a server vulnerability Rate Topic: -----

#1 User is offline   Jagged (old) Icon

  • Joined: 29-June 04
  • Posts: 153

Posted 18 February 2005 - 06:40 AM

Just wanted to pass on this new vulnerability for other server admins:

http://www.securityf...07/2005-02-13/0

I have an updated 1.32b linux binary, or you can download and compile the updater on the link above.

-Jagged

#2 User is offline   HoboHumpinSlut (old) Icon

  • Joined: 07-February 04
  • Posts: 2,308

Posted 18 February 2005 - 07:37 AM

too bad that binary is anything but official

#3 User is offline   illogical Icon

  •   verified user   
    Retired Master Server Administrator
  • Account: illogical
  • Main tag: 6th|
  • Country:
  • Joined: 08-March 10
  • Posts: 2,349

Posted 18 February 2005 - 08:11 AM

Can't sleep, read this. The issue has been around. I'd like to think that the gaming community is beyond that type of "attack", but it is still best to run your server within some type of auto-restarting script or have it checked every 5 minutes or so. If it becomes a problem I think an iptables ruleset could be cooked up to block it.

*Running an un-official patch on your server is NOT SUGGESTED*

#4 User is offline   Jagged (old) Icon

  • Joined: 29-June 04
  • Posts: 153

Posted 18 February 2005 - 02:28 PM

I would agree, however an autorestart script doesn't do much good if the server is being continuously attacked. Luigi kindly provided the source for the updater, and as you can see it modifies only one byte.

I highly doubt we'll see an official patch from id for this bug.


Think all you want about the community, but there are people out there who will gladly take advantage of this to crash a server. This is especially bad if it happens mid-match.

#5 User is offline   rashly (old) Icon

  • Joined: 08-February 04
  • Posts: 352
  • Locationlong island

Posted 18 February 2005 - 04:49 PM

What file does the match modify? Will this create unpure errors?

If the above doesn't, then I would much, much rather have this patch running on our server than not. Having a crash during a match is not a good thing.

bullet_loaderAdvertisement

#6 User is offline   illogical Icon

  •   verified user   
    Retired Master Server Administrator
  • Account: illogical
  • Main tag: 6th|
  • Country:
  • Joined: 08-March 10
  • Posts: 2,349

Posted 18 February 2005 - 05:10 PM

It modifies the Quake 3 binary. Now, whether or not this creates unpure errors or peaks PB's curiousity is something entirely different. If it doesn't, well that's a whole other problem (clans modifying the binary for certain things that work to their advantage). With a little creative programming and address table changing, anything is possible.

#7 User is offline   illogical Icon

  •   verified user   
    Retired Master Server Administrator
  • Account: illogical
  • Main tag: 6th|
  • Country:
  • Joined: 08-March 10
  • Posts: 2,349

Posted 18 February 2005 - 05:23 PM

The following iptables rules require the string match module. Note that the the string match module is case sensitive (I'm working on that). This should have no problem dealing with the overflow.

iptables -I INPUT 1 -p udp -m mport --dports 27960 -m string --string "xffxffxffxffgetstatus" -m length --length 50:inf -j DROP
iptables -I INPUT 1 -p udp -m mport --dports 27960 -m string --string "xffxffxffxffgetinfo" -m length --length 50:inf -j DROP


Rule goes at the top of the INPUT chain, checks stuff that is UDP and going to port 27960 (add more by tacking them on with commas, no spaces). If the packet contains a status or info request and is larger than 50 bytes (reasonable), toss it.

#8 User is offline   Jagged (old) Icon

  • Joined: 29-June 04
  • Posts: 153

Posted 18 February 2005 - 06:58 PM

Quote

What file does the match modify? Will this create unpure errors?

If the above doesn't, then I would much, much rather have this patch running on our server than not. Having a crash during a match is not a good thing.


It modifies the q3ded binary. It does not cause unpure errors nor does pb check the q3ded.

#9 User is offline   rashly (old) Icon

  • Joined: 08-February 04
  • Posts: 352
  • Locationlong island

Posted 18 February 2005 - 07:01 PM

Good. Thanks Jagged. I am glad that this is on my server.

#10 User is offline   Jagged (old) Icon

  • Joined: 29-June 04
  • Posts: 153

Posted 18 February 2005 - 07:48 PM

Quote

The following iptables rules require the string match module. Note that the the string match module is case sensitive (I'm working on that). This should have no problem dealing with the overflow.

iptables -I INPUT 1 -p udp -m mport --dports 27960 -m string --string "xffxffxffxffgetstatus" -m length --length 50:inf -j DROP
iptables -I INPUT 1 -p udp -m mport --dports 27960 -m string --string "xffxffxffxffgetinfo" -m length --length 50:inf -j DROP


Rule goes at the top of the INPUT chain, checks stuff that is UDP and going to port 27960 (add more by tacking them on with commas, no spaces). If the packet contains a status or info request and is larger than 50 bytes (reasonable), toss it.


Definately worth looking into, however the string matching module does not work on kernels =>2.6.0 (at least according to what documentation I can find). Also, the patch-o-matic-ng that this is part of contains some pretty experimental modules.

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Sponsored link
https://www.frozensand.com/


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942