[radext] Question for proxy behavior for bad EAP packets
Alan DeKok <aland@deployingradius.com> Sat, 03 June 2023 12:38 UTC
Return-Path: <aland@deployingradius.com>
X-Original-To: radext@ietfa.amsl.com
Delivered-To: radext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 571FEC151527 for <radext@ietfa.amsl.com>; Sat, 3 Jun 2023 05:38:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.899
X-Spam-Level:
X-Spam-Status: No, score=-6.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MSLJIcMJzHT6 for <radext@ietfa.amsl.com>; Sat, 3 Jun 2023 05:38:20 -0700 (PDT)
Received: from mail.networkradius.com (mail.networkradius.com [62.210.147.122]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8C629C14CE2B for <radext@ietf.org>; Sat, 3 Jun 2023 05:38:19 -0700 (PDT)
Received: from smtpclient.apple (135-23-95-173.cpe.pppoe.ca [135.23.95.173]) by mail.networkradius.com (Postfix) with ESMTPSA id E229E872 for <radext@ietf.org>; Sat, 3 Jun 2023 12:38:16 +0000 (UTC)
Authentication-Results: NetworkRADIUS; dmarc=none (p=none dis=none) header.from=deployingradius.com
From: Alan DeKok <aland@deployingradius.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\))
Message-Id: <81617619-CF5D-4221-84CF-36F3CDBC5437@deployingradius.com>
Date: Sat, 03 Jun 2023 08:38:15 -0400
To: radext@ietf.org
X-Mailer: Apple Mail (2.3696.120.41.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/radext/40nmkHtVkrWfEty_oAl93gQ4tYA>
Subject: [radext] Question for proxy behavior for bad EAP packets
X-BeenThere: radext@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: RADIUS EXTensions working group discussion list <radext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/radext>, <mailto:radext-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/radext/>
List-Post: <mailto:radext@ietf.org>
List-Help: <mailto:radext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/radext>, <mailto:radext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Jun 2023 12:38:26 -0000
The eduroam people have been seeing bad EAP packets coming from some (un-named) wireless controllers. The packets contain invalid EAP-Message attributes. It looks like the WLC is: * receiving an EAPoL frame * extracting the EAP identity, and placing it into the User-Name field * creating the rest of the RADIUS packet * copying the contents of the EAP-Message attribute from a random buffer instead of from the input EAPoL frame I've put some code into FreeRADIUS to block these packets before they get proxied: https://github.com/FreeRADIUS/freeradius-server/blob/v3.2.x/src/modules/rlm_eap/rlm_eap.c#L563 i.e. before the server proxies the packets, it checks if EAP-Message contains a valid EAP packet. If not, the proxy synthesizes an Access-Reject. One reason to do this at the proxy is that many educational institutions use a server which will just discard the entire packet. Which makes the proxy think that the home server is down. So it's better for the proxy to reject the packets. So the question is: Is this good for the proxy to do? I can't see any issue with it. On one hand, the proxy is theoretically not supposed to interfere with authentication methods like this. However, there is no possible way for the home server to authenticate this user. The packet contains little other than a User-Name, MAC address, and some VSAs. So if we're 100% sure that the home server is going to drop the packet (bad), or reject the packet (better), then it's reasonable to have the proxy synthesize an Access-Reject. It's likely that eduroam will be rolling out this behaviour across their network. The previous behavior of "proxy, and then the home server discards the packet" was causing instabilities, and substantial administrator overhead. This solution doesn't fix the problem, but it means that misbehaving WLCs don't have the chance to take down the rest of the network. Samples of the invalid EAP packets are: AVP: t=EAP-Message(79) l=31 Last Segment[1] Type: 79 Length: 31 [Length: 29] EAP fragment: 6c6f63616c00095f7365727669636573075f646e732d7364045f756470 "local._services._dnsd._udp" in DNS label format ... AVP: t=EAP-Message(79) l=31 Last Segment[1] Type: 79 Length: 31 [Length: 29] EAP fragment: 436f6c6f72204c617365724a6574204d4650204d323737647720402053 "Color LaserJet MFP M277dw ..." ... AVP: t=EAP-Message(79) l=31 Last Segment[1] Type: 79 Length: 31 [Length: 29] EAP fragment: 0000000000000000000000000000000000000000000000000000000000 !!!! all zeroes !!!!
- Re: [radext] Question for proxy behavior for bad … Bernard Aboba
- [radext] Question for proxy behavior for bad EAP … Alan DeKok
- Re: [radext] Question for proxy behavior for bad … josh.howlett
- Re: [radext] Question for proxy behavior for bad … Bernard Aboba
- Re: [radext] Question for proxy behavior for bad … Alan DeKok
- Re: [radext] Question for proxy behavior for bad … Alexander Clouter
- Re: [radext] Question for proxy behavior for bad … Michael Richardson
- Re: [radext] Question for proxy behavior for bad … Alan DeKok
- Re: [radext] Question for proxy behavior for bad … Michael Richardson
- Re: [radext] Question for proxy behavior for bad … Alan DeKok
- Re: [radext] Question for proxy behavior for bad … josh.howlett
- Re: [radext] Question for proxy behavior for bad … Heikki Vatiainen
- Re: [radext] Question for proxy behavior for bad … Alan DeKok
- Re: [radext] Question for proxy behavior for bad … Jan-Frederik Rieckers
- Re: [radext] Question for proxy behavior for bad … Alan DeKok
- Re: [radext] Question for proxy behavior for bad … Heikki Vatiainen
- Re: [radext] Question for proxy behavior for bad … Alexander Clouter
- Re: [radext] Question for proxy behavior for bad … Alan DeKok
- Re: [radext] Question for proxy behavior for bad … josh.howlett
- Re: [radext] Question for proxy behavior for bad … Stefan Paetow