OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Bugtraq archives for 4th quarter (Oct-Dec) 1998: Pine 4.05 patches

Pine 4.05 patches

GvS (gvsRINET.RU)
Sat, 12 Dec 1998 16:55:25 +0300

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mimedocserver.cac.washington.edu for more info.

--0-1403337292-913470564=:5552
Content-Type: text/PLAIN; CHARSET=us-ascii
Content-ID: <Pine.BSF.4.05r.9812121653561.5552relay.rinet.ru>

Hi, folks!

My previous posting about this issue died in the deep of Internet
delivery subways, so I just write new (I removed old already).
Here are three patches for you related to different topics.

The 1st patch is about pine locking mode. At the time of 3.96 version
level some good guy already posted lock-patch here, changing mode from
0666 to 0600, but distribution of pine still has lock-mode 0666. I
contacted with one of Pine developers, Mike Crispin, but the result of
that discussion was very funny: Mark accused me of the adherency to
the dictatorship and explained it with my russian citizenship. Huh!
His server never been cracked and/or abused, I see. He even refused to
make this feature-selectable!

But stop flames. Mark affirmed, that 0666 lock protection is strongly
needed for an appropriate shared mail-boxes access. I myself couldn't
reproduce situation when 0600 lock mode could cause to DoS attack, but
I easily made two DoS attacks for Pine using 0666 lock-mode. So I
prepared the patch that allows you to select between lock-mode 0600
and 0666. It's as easy as possible, so you guys can replace any
component of it (e.g. make group-writable or so).

Second patch related to the charset, content-type and
content-transfer-encoding names. Pine sends them all in uppercase,
really confusing M$ Outlook and so. When M$ mail agents try to read
Pine-written mails, they display them fine, but refuse to quote them,
considering text/plain and TEXT/PLAIN the different content-types. I
understand that right way would be to patch M$OE, but I can't. So I
patched Pine to send these keywords in lowercase.

The third patch is for those who lives in eight-bit zone, but their
servers, even allowing to send ESMTP/8BITMIME, never reort this
capability. It is also prepared as selectable feature, for those, who
is stronhly sure in their ability for use it.

SY, Seva Gluschenko, just stranger at the Road.
GVS-RIPE: Cronyx Plus / RiNet network administrator.

--- IRC: erra
 * Origin: Erra Netmale (gvsrinet.ru) [http://gvs.rinet.ru/]

--0-1403337292-913470564=:5552
Content-Type: text/PLAIN; CHARSET=us-ascii; NAME="pine4.05.lock.diff"
Content-Transfer-Encoding: base64
Content-ID: <Pine.BSF.4.05r.9812121649240.5552relay.rinet.ru>
Content-Description: Lock-mode selectable
Content-Disposition: ATTACHMENT; FILENAME="pine4.05.lock.diff"

ZGlmZiAtdSAtciBwaW5lLm9yaWcvcGluZS9pbml0LmMgcGluZTQuMDUvcGlu
ZS9pbml0LmMNCi0tLSBwaW5lLm9yaWcvcGluZS9pbml0LmMJVHVlIE5vdiAx
MCAxODozODo0MyAxOTk4DQorKysgcGluZTQuMDUvcGluZS9pbml0LmMJV2Vk
IE5vdiAxMSAxNToyNDoyOSAxOTk4DQpAQCAtMTQ3NCw2ICsxNDc1LDcgQEAN
CiAjZW5kaWYNCiAJeyJlbmFibGUtYm91bmNlLWNtZCIsCQkJRl9FTkFCTEVf
Qk9VTkNFfSwNCiAJeyJlbmFibGUtbGFtZS1saXN0LW1vZGUiLAkJRl9GSVhf
QlJPS0VOX0xJU1R9LA0KKwl7ImVuYWJsZS1sb2NrLXdvcmxkLXdyaXRhYmxl
IiwJCUZfRU5BQkxFX0xPQ0tfMDY2Nn0sDQogCXsiZW5hYmxlLWNydWlzZS1t
b2RlIiwJCQlGX0VOQUJMRV9TUEFDRV9BU19UQUJ9LA0KIAl7ImVuYWJsZS1j
cnVpc2UtbW9kZS1kZWxldGUiLAkJRl9FTkFCTEVfVEFCX0RFTEVURVN9LA0K
IAl7ImVuYWJsZS1kZWxpdmVyeS1zdGF0dXMtbm90aWZpY2F0aW9uIiwJRl9E
U059LA0KQEAgLTE2MjIsNiArMTYyNCwxMiBAQA0KICAgICAgKi8NCiAgICAg
aWYoRl9PTihGX1FVRUxMX0xPQ0tfRkFJTFVSRV9NU0dTLCBwcykpDQogICAg
ICAgbWFpbF9wYXJhbWV0ZXJzKE5VTEwsIFNFVF9MT0NLRUFDQ0VTRVJST1Is
ICh2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LSB0aGUgc3R1Y2sgbG9jay4gRXZl
biB3aGVuIHNvbWUgYmFkZ3V5IGluIHlvdXINCitlbnZpcm9ubWVudCBiZWNv
bWVzIGtpbmRhIHN0dXBpZCB0byBtYWtlIHRoZSBjb250aW51b3VzIGxvY2tp
bmcgb2Ygc29tZQ0KK21haWxib3gsIGFkbWlucyBtYXkgc2ltcGx5IGNhdGNo
IGhpbSBieSBvd25lciBvZiBzdWNoIGxvY2tzLCBidXQgd29ybGQNCit3cml0
YWJsZSBsb2NrIGNhbiBiZSBjb3JydXB0ZWQgYnkgYW55b25lLg0KKzxQPg0K
K1NlZSBhbHNvOiA8QSBIUkVGPSJoX2luZm9fb25fbG9ja2luZyI+Tm90ZXMg
YWJvdXQgUGluZSBmaWxlIGxvY2tpbmc8L0E+DQogPFA+DQogJmx0O0VuZCBv
ZiBoZWxwIG9uIHRoaXMgdG9waWMmZ3Q7DQogPC9CT0RZPg0K
--0-1403337292-913470564=:5552
Content-Type: text/PLAIN; CHARSET=us-ascii; NAME="pine4.05.rfc822.diff"
Content-Transfer-Encoding: base64
Content-ID: <Pine.BSF.4.05r.9812121649241.5552relay.rinet.ru>
Content-Description: small-case keywords
Content-Disposition: ATTACHMENT; FILENAME="pine4.05.rfc822.diff"

ZGlmZiAtdSAtciBwaW5lLm9yaWcvaW1hcC9zcmMvYy1jbGllbnQvcmZjODIy
LmMgcGluZTQuMDUvaW1hcC9zcmMvYy1jbGllbnQvcmZjODIyLmMNCi0tLSBw
aW5lLm9yaWcvaW1hcC9zcmMvYy1jbGllbnQvcmZjODIyLmMJTW9uIE5vdiAg
OSAxODoyMzo0MiAxOTk4DQorKysgcGluZTQuMDUvaW1hcC9zcmMvYy1jbGll
bnQvcmZjODIyLmMJTW9uIE5vdiAgOSAxODoxODowNiAxOTk4DQpAQCAtNTks
MTMgKzU5LDEzIEBADQogLyogQm9keSBmb3JtYXRzIGNvbnN0YW50IHN0cmlu
Z3MsIG11c3QgbWF0Y2ggZGVmaW5pdGl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X2FzY2lpID0gIlVTLUFTQ0lJIjsN
Ci0gICAgc3RhdGljIGNoYXIgICpub25fYXNjaWlbXSA9IHsiVU5JQ09ERS0x
LTEtVVRGLTciLCBOVUxMfTsNCisgICAgc3RhdGljIGNoYXIgICp1c19hc2Np
aSA9ICJ1cy1hc2NpaSI7DQorICAgIHN0YXRpYyBjaGFyICAqbm9uX2FzY2lp
W10gPSB7InVuaWNvZGUtMS0xLXV0Zi03IiwgTlVMTH07DQogICAgIGludCAg
ICAgICAgICAgYWxyZWFkeV9zZXQgPSAwOw0KIA0KICAgICBpZighcG0gfHwg
c3RydWNtcChwbS0+YXR0cmlidXRlLCAiY2hhcnNldCIpICE9IDApDQpAQCAt
NzY0Niw3ICs3NjQ2LDcgQEANCiAJCXJldHVybihwd2JoX2ZpbmlzaCgwLCBz
bykpOw0KIAkgICAgd2hpbGUgKHBhcmFtID0gcGFyYW0tPm5leHQpOw0KIAl9
DQotCWVsc2UgaWYoIXNvX3B1dHMoc28sICI7IENIQVJTRVQ9VVMtQVNDSUki
KSkNCisJZWxzZSBpZighc29fcHV0cyhzbywgIjsgY2hhcnNldD11cy1hc2Np
aSIpKQ0KIAkgIHJldHVybihwd2JoX2ZpbmlzaCgwLCBzbykpOw0KIAkgICAg
DQogCWlmKCFzb19wdXRzKHNvLCAiXDAxNVwwMTIiKSkNCg==
--0-1403337292-913470564=:5552
Content-Type: text/PLAIN; CHARSET=us-ascii; NAME="pine4.05.8bit.diff"
Content-Transfer-Encoding: base64
Content-ID: <Pine.BSF.4.05r.9812121649242.5552relay.rinet.ru>
Content-Description: eight-bit body
Content-Disposition: ATTACHMENT; FILENAME="pine4.05.8bit.diff"

ZGlmZiAtdSAtciBwaW5lLm9yaWcvcGluZS9pbml0LmMgcGluZTQuMDUvcGlu
ZS9pbml0LmMNCi0tLSBwaW5lLm9yaWcvcGluZS9pbml0LmMJVHVlIE5vdiAx
MCAxODozODo0MyAxOTk4DQorKysgcGluZTQuMDUvcGluZS9pbml0LmM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