Date: Mon, 4 Jan 1999 00:55:14 -0600 (CST)
From: Marc Santoro <[email protected]>
To: [email protected], [email protected]Subject: ipchains security hole
Cc: [email protected], [email protected]
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 [email protected] for more info.
--8323328-1928208570-915428083=:5383
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.02.9901032334531.5383@localhost>
Description:
The Linux ipfwchains code allows any user to access the complete
list of firewall rules if /proc is mounted. The list of firewall rules
would be extremely useful for a system attack.
Exploit:
(as any user)
$ cat /proc/net/ip_fwchains
$ cat /proc/net/ip_fwnames
Fix:
Apply the attached kernel patch.
Works against 2.1.131 & 2.2.0-pre4, YMMV
Tested against:
Linux kernel versions 2.1.131->2.2.0-pre4 (Not regression tested)
--8323328-1928208570-915428083=:5383
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ip_fw.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.02.9901040055140.384@localhost>
Content-Description:
Content-Disposition: attachment; filename="ip_fw.diff"
KioqIGlwX2Z3LmMuYnVnZ3kJU3VuIEphbiAgMyAyMzowODo1NiAxOTk5DQot
LS0gaXBfZncuYwlNb24gSmFuICA0IDAwOjUzOjQxIDE5OTkNCioqKioqKioq
KioqKioqKg0KKioqIDI5LDM0ICoqKioNCi0tLSAyOSwzNyAtLS0tDQogICAq
IDEtTWF5LTE5OTg6ICBSZW1vdmUgY2FjaGluZyBvZiBkZXZpY2UgcG9pbnRl
ci4NCiAgICogMTItTWF5LTE5OTg6IEFsbG93IHRpbnkgZnJhZ21lbnQgY2Fz
ZSBmb3IgVENQL1VEUC4NCiAgICogMTUtTWF5LTE5OTg6IFRyZWF0IHNob3J0
IHBhY2tldHMgYXMgZnJhZ21lbnRzLCBkb24ndCBqdXN0IGJsb2NrLg0KKyAg
KiAzLUphbi0xOTk5OiAgRml4ZWQgc2VyaW91cyBwcm9jZnMgc2VjdXJpdHk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