Re: DB2UDB hack

CRPence <crp-++wMt91yzU0OFdY8m0e24VaTQe2KTcn/@public.gmane.org> Thu, 25 Oct 2007 09:41:48 -0500
Newsgroups gmane.comp.systems.as400.security
Message-ID <[email protected]>
   The code base for DB2 on Linux, Unix, & Windows is effectively the 
same [thus the DB2 LUW moniker].  If an error is in common code, then it 
could easily span those servers.  FWiW, a visual for the common code in 
DB2 LUW:
http://www.ibm.com/developerworks/db2/library/techarticle/dm-0611zikopoulos/#section1

   According to the defect, a /DB2JDS service listening on TCP port/ 
would have to be both available and active on the [DB2 for] i5/OS.  I am 
not aware of that service, but it both could and may exist.  Regardless, 
I am doubtful that "a specially crafted packet" being "improperly 
processed" would both result in "a standard stack overflow situation" 
and then enabling an unauthenticated [database] access to perform 
"remote code execution" of "arbitrary code" within the i5/OS framework. 
  In the framework of i5/OS a code stream is encapsulated in an object 
against which only supported methods are allowed -- thus removing much 
of the /arbitrary/ from the equation.  The program object can be 
addressed, but the code stream can not be addressed.

   Apparently DB2JDS is the "DB2 JDBC Applet Server" which is "started 
with the command: db2jstrt <port number>" and used for a Type3 driver; 
may run as db2jd as a [service?] name -- without the 's'.  The following 
article mentions that function in scenarios 9 and 7, and notes that 
Type3 is not even supported by i5/OS, which I believe is still correct:
  http://www.ibm.com/developerworks/db2/library/techarticle/dm-0401chong

Regards, Chuck
-- 
  All comments provided "as is" with no warranties of any kind 
whatsoever and may not represent positions, strategies, nor views of my 
employer

[email protected] wrote:
> This link points to a hack for DB2 UDB on Unix, Linux and Windows.  Hey, 
> if it was only Windows I would leave it at that, but is there a matching 
> apar for i5/os?
> http://www-1.ibm.com/support/docview.wss?uid=swg1IY97750

_______________________________________________
This is the Security Administration on the AS400 / iSeries (Security400) mailing list
To post a message email: Security400-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/security400
or email: Security400-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/security400.