Where
AND
-Infinity
0
Severity
5.9
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

It was reported [1] that wpasupplicant does not properly check certificate subject name, which might lead to "man in the middle" attack. Relevant part of the original report: ...

wpasupplicant, linked against openssl performs this check:

if (depth == 0 && match && osstrstr(buf, match) == NULL) { wpaprintf(MSGWARNING, "TLS: Subject '%s' did not " "match with '%s'", buf, match); preverifyok = 0; openssltlsfailevent(conn, errcert, err, depth, buf, "Subject mismatch", TLSFAILSUBJECTMISMATCH); }

strstr() is vulnerable to extension attack, for instance, one would like to match on /CN=wireless.nikhef.nl, but explicitly not match on wireless.nikhef.nl.honestachmed.tr. There is no way to implement a secure EAP-TTLS/PEAP configuration using public certificates this way.

When linked against GnuTLS, the problem is even worse:

if (i == 0) { / TODO: validate subjectmatch and altsubjectmatch / }

Now, it is current best practice to run EAP-TTLS/PEAP with public certificates, because on Windows, this automatically pins the CN and CA from the certificate. ...

[1]: https://bugzilla.redhat.com/showbug.cgi?id=1178263

1 / 2
Source: Red Hat
First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203