Go Back   RunUO - Ultima Online Emulation > RunUO > Core Modifications > Network Modifications

Network Modifications This forum is for modifications to the networking code of RunUO

Closed Thread
 
Thread Tools Display Modes
Old 12-26-2005, 10:47 PM   #1 (permalink)
Forum Expert
 
Join Date: Feb 2005
Location: Houston, TX
Age: 20
Posts: 313
Send a message via ICQ to autumntwilight Send a message via AIM to autumntwilight Send a message via MSN to autumntwilight Send a message via Yahoo to autumntwilight
Default Serious Bug In PacketHandlers.cs

It appears there's a huge flaw in PacketHandlers.cs. Players can edit packets with a packet editor when naming a character that throw the server into a crash. I have no fix for this bug. I am seeking assistance on how to fix it myself.
autumntwilight is offline  
Old 12-27-2005, 09:07 AM   #2 (permalink)
Forum Expert
 
Thistle's Avatar
 
Join Date: Mar 2005
Posts: 1,155
Default

Hacker

Check the above link out as it may be what you're referring to.
Thistle is offline  
Old 12-28-2005, 12:32 AM   #3 (permalink)
Garm Brood Cerebrate
 
ZaSz-RH's Avatar
 
Join Date: Dec 2003
Location: Québec, Canada
Age: 23
Posts: 201
Send a message via MSN to ZaSz-RH
Default

http://article.gmane.org/gmane.comp....line.sunuo/106

In Network\PacketHandlers.cs at line 1969, change:
Code:
Console.WriteLine( cityIndex );
Console.WriteLine( info.Length );
Console.WriteLine( "New character name: '{0}'", name );
state.Dispose();
for:
Code:
Console.WriteLine( cityIndex );
if ( info != null )
      Console.WriteLine( info.Length );
Console.WriteLine( "New character name: '{0}'", name );
state.Dispose();
And it should work.

I saw there were also the source of a C program to exploit that flaw somewhere on the net.
__________________
Named after the fierce hellhound of Norse myth, the Garm strikes with alarming speed and ferocity. The minions of this Brood excel at hit and run raids that weaken their enemy's defensive formations. Zasz, the cunning Cerebrate of this Brood, delights in preemptive attacks, relying chiefly upon surprise to throw enemy forces into total chaos.

Last edited by ZaSz-RH; 12-28-2005 at 11:05 AM.
ZaSz-RH is offline  
Old 12-28-2005, 12:41 AM   #4 (permalink)
Account Terminated
 
Join Date: Jun 2004
Location: Cincinnati, Ohio
Age: 20
Posts: 3,954
Default

Why would you post the exploit directly onto the RunUO forums?
WarAngel is offline  
Old 12-28-2005, 02:28 AM   #5 (permalink)
Forum Novice
 
Join Date: Jun 2005
Location: New Castle, Indiana
Age: 20
Posts: 215
Send a message via AIM to Deaths Advocate Send a message via MSN to Deaths Advocate Send a message via Yahoo to Deaths Advocate
Default

umm to git help maybe on how to fix it? most ppl dont think well hrmm ppl will prolly exploit this flaw they usually think hrmm i need help *types in www.runuo.com* and bam they post
Deaths Advocate is offline  
Old 12-28-2005, 02:50 AM   #6 (permalink)
Account Terminated
 
Join Date: Jun 2004
Location: Cincinnati, Ohio
Age: 20
Posts: 3,954
Default

That doesn't require the posting of the actual exploit itself. A lot of people will use a dangerous tool if it's handed to them. You would be suprised at how many people will see this exploit and use it. If you think I'm wrong, then you obviously have not played on a shard with an exploitable situation before. I don't see how it was required at all.
WarAngel is offline  
Old 12-28-2005, 03:22 AM   #7 (permalink)
Forum Expert
 
Tannis's Avatar
 
Join Date: Feb 2004
Age: 27
Posts: 2,047
Default

Quote:
Originally Posted by WarAngel
That doesn't require the posting of the actual exploit itself. A lot of people will use a dangerous tool if it's handed to them. You would be suprised at how many people will see this exploit and use it. If you think I'm wrong, then you obviously have not played on a shard with an exploitable situation before. I don't see how it was required at all.
Agreed! And I guess I can't post less than 10 characters, so here's the other few I needed.
Tannis is offline  
Old 12-28-2005, 11:06 AM   #8 (permalink)
Garm Brood Cerebrate
 
ZaSz-RH's Avatar
 
Join Date: Dec 2003
Location: Québec, Canada
Age: 23
Posts: 201
Send a message via MSN to ZaSz-RH
Default

Removed the link. Thought it would help... but yeah it may be used by some idiots to crash shards...
__________________
Named after the fierce hellhound of Norse myth, the Garm strikes with alarming speed and ferocity. The minions of this Brood excel at hit and run raids that weaken their enemy's defensive formations. Zasz, the cunning Cerebrate of this Brood, delights in preemptive attacks, relying chiefly upon surprise to throw enemy forces into total chaos.
ZaSz-RH is offline  
Old 12-28-2005, 01:13 PM   #9 (permalink)
Account Terminated
 
Join Date: Jun 2004
Location: Cincinnati, Ohio
Age: 20
Posts: 3,954
Default

Thanks ZaSz. Better off to leave the chance that they won't figure out where the exploit really is, if they don't notice the site hosting it or anything. ;-)
WarAngel is offline  
Old 12-28-2005, 04:05 PM   #10 (permalink)
Forum Expert
 
Join Date: Sep 2002
Age: 23
Posts: 1,472
Default

I'd have to say I'm a fan of the "security bulletin" approach. Make the exploit public and raise the awareness. That will force a fix to be released much sooner, and people will know WHY their servers are crashing.

If someone was "smart" about it, they'd create a worm that browses the UO Gateway server list and randomly crashes servers from a range of different remote computers.
Ravatar is offline  
Old 12-28-2005, 04:09 PM   #11 (permalink)
Account Terminated
 
Join Date: Jun 2004
Location: Cincinnati, Ohio
Age: 20
Posts: 3,954
Default

Making exploits/hacks widely available is a terrible way to force people to update their servers and/or get fixes. I can't believe you'd even suggest that, or the second part of your post.
WarAngel is offline  
Old 12-28-2005, 04:18 PM   #12 (permalink)
Forum Expert
 
IHaveRegistered's Avatar
 
Join Date: Jun 2003
Location: Ontario
Age: 20
Posts: 4,519
Send a message via MSN to IHaveRegistered
Default

Quote:
Originally Posted by WarAngel
Making exploits/hacks widely available is a terrible way to force people to update their servers and/or get fixes. I can't believe you'd even suggest that, or the second part of your post.
How was he suggesting it? He said someone COULD do that, which is why we need to stop it...
__________________
IHaveRegistered is offline  
Old 12-28-2005, 04:19 PM   #13 (permalink)
Account Terminated
 
Join Date: Jun 2004
Location: Cincinnati, Ohio
Age: 20
Posts: 3,954
Default

Bleh, I didn't mean suggest the second part, I meant suggest the first part. I meant that I couldn't believe he'd even post the second part.
WarAngel is offline  
Old 12-29-2005, 12:22 AM   #14 (permalink)
Garm Brood Cerebrate
 
ZaSz-RH's Avatar
 
Join Date: Dec 2003
Location: Québec, Canada
Age: 23
Posts: 201
Send a message via MSN to ZaSz-RH
Default

Anyway, smart people are able to create it or find it if they really want to...
This thread is about the fix, and the fix was posted. Fix your shard and have a nice day!
__________________
Named after the fierce hellhound of Norse myth, the Garm strikes with alarming speed and ferocity. The minions of this Brood excel at hit and run raids that weaken their enemy's defensive formations. Zasz, the cunning Cerebrate of this Brood, delights in preemptive attacks, relying chiefly upon surprise to throw enemy forces into total chaos.
ZaSz-RH is offline  
Old 12-29-2005, 10:34 AM   #15 (permalink)
xir
Forum Newbie
 
Join Date: Jul 2004
Posts: 59
Default

The "exploit" is kind of obvious from the posted fix. How about checking for the exploit, log the attempt and autoblock the ip address?
xir is offline  
Old 01-12-2006, 05:18 AM   #16 (permalink)
Newbie
 
Join Date: Feb 2004
Posts: 50
Default

I agree with you rav :P
jairon is offline  
Old 01-13-2006, 07:39 AM   #17 (permalink)
Forum Expert
 
Ohms_Law's Avatar
 
Join Date: Sep 2004
Age: 37
Posts: 1,006
Default

From: http://www.opensource.org/advocacy/faq.php

Doesn't closed source help protect against crack attacks?

This is exactly backwards, as any cryptographer will tell you. Security through obscurity just does not work.
The reason it doesn't work is that security-breakers are a lot more motivated and persistent than good guys (who have lots of other things to worry about). The bad guys will find the holes whether source is open or closed (for a perfect recent example of this see The Tao of Windows Buffer Overflow).
Closed sources do three bad things. One: they create a false sense of security. Two: they mean that the good guys will not find holes and fix them. Three: they make it harder to distribute trustworthy fixes when a hole is revealed.
In fact, open-source operating systems and applications are generally much more security-safe than their closed-source counterparts. When the "Ping o' Death" exploit was revealed in 1997 (for example) Linux had fix patches within hours. Closed-source OSs didn't plug the hole for months.
Alan Cox has written an excellent article on The Risks of Closed Source Computing.


Simply substitute the word "source" with "posting exploits".
look, the only point I'm making is how in the world are we (honest, non-expoiting, Admins/GameMasters/Coders) supposed to battle against a bunch of script kiddies when we have no clue what in the world there doing?
Note that this isn't a comment on the original problem and/or the proposed fix. I've simply been doing some reading on www.opensource.org reacently, and this caught my eye.

Last edited by Ohms_Law; 01-13-2006 at 07:44 AM.
Ohms_Law is offline  
Old 01-13-2006, 11:43 AM   #18 (permalink)
 
Join Date: Oct 2002
Age: 22
Posts: 4,689
Default

As a note, since the networking has been recoded somewhat for the next version, I do not believe this is inherently a problem.

As for the fix, your post is fine.

In terms of closed source vs open source. This is not a concern for C#, as we have seen with dolts like the Russians, you can illegally decompile closed source code (especially C#) if you really wanted to, and not even obfustruction will stop it. The only thing that obfustruction will do, is make the program slower.

In my opinion, this debate should be over. The fix is fine until the release of the next version, and there is nothing wrong with this thread.
XxSP1DERxX is offline  
Old 01-13-2006, 02:58 PM   #19 (permalink)
Newbie
 
Join Date: Nov 2003
Posts: 60
Default

For this bug exist public and functional exploit who crash any RunUO 1.0.0 without patched core.
Viky is offline  
Old 01-13-2006, 03:49 PM   #20 (permalink)
Account Terminated
 
Join Date: Jun 2004
Location: Cincinnati, Ohio
Age: 20
Posts: 3,954
Default

We know, hence why a fix was created and posted. And it does not require a patched core, as was already stated as well.
WarAngel is offline  
Old 08-05-2008, 07:55 PM   #21 (permalink)
Newbie
 
ThatGuyBehindYou's Avatar
 
Join Date: Jul 2008
Age: 18
Posts: 60
Default

I guess its a stupid question but here you go:
Does the exploit work on RunUO 2.0 RC2? Sorry someone had to ask this .
__________________
"I remember the time i was kidnapped and they sent a piece of my finger to my father, He said he wanted more proof."
ThatGuyBehindYou is offline  
Old 08-06-2008, 02:48 PM   #22 (permalink)
Newbie
 
Sixkillers's Avatar
 
Join Date: May 2006
Posts: 67
Default

No it doesnt.
Sixkillers is offline  
Closed Thread

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5