View Single Post
Old 23.12.2005, 18:26   #358
tontor
Архивный участник
 
Join Date: May 2005
Posts: 109
Default sql injection

I've added a hijack in assemble checking if the return is to CDBSocket::SendV if so, and the packet contains a unicode string to be assembled, it is filtered. It appears all sends to cached no matter what cdb send function is used will at one time call CDBSocket::SendV, this should cover all input to cached. All user input seems to be unicode not ascii.

So here you go, hopefully should solve sql injection problems. Filters are for ' " and -. Upon attempt it is logged to l2server with not much detail, just the string that was attempted and the packet gets dropped, you'll see an assemble error too, because i fail the assemble of the packet if filter matches, causing packet to be dropped.
tontor is offline