

oss-security - Re: [Lynx-dev] bug in Lynx' SSL certificate validation -> leak...
source link: https://www.openwall.com/lists/oss-security/2021/08/07/1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Re: [Lynx-dev] bug in Lynx' SSL certificate validation -> leaks password in clear text via SNI (under some circumstances)
Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sat, 7 Aug 2021 03:51:07 +0200 From: Axel Beckert <[email protected]> To: [email protected] Cc: [email protected], [email protected], [email protected] Subject: Re: [Lynx-dev] bug in Lynx' SSL certificate validation -> leaks password in clear text via SNI (under some circumstances) Hi, On Fri, Aug 06, 2021 at 05:14:32PM +0000, Thorsten Glaser <[email protected]> wrote in https://lists.nongnu.org/archive/html/lynx-dev/2021-08/msg00000.html: > this affects both OpenSSL and Debian’s nonGNUtls builds: > > lynx https://user:[email protected]/ > > … will lead to… > > SSL error:host(user:[email protected])!=cert(CN<mainhost>:SAN<DNS=host>:SAN<DNS=otherhost> > > … for OpenSSL lynx and… > > SSL error:host(user:[email protected])!=cert(CN<mainhost>)-Continue? (n) > > … for nonGNUtls lynx. > > Obviously, user:pass@ need to be stripped before comparing. This is more severe than it initially looked like: Due to TLS Server Name Indication (SNI) the hostname as parsed by Lynx (i.e with "user:pass@" included) is sent in _clear_ text over the wire even _before_ I can even said "n" for "no, don't continue to talk with this server" in Lynx's prompt as shown above. I was able to capture the password given on the commandline in traffic of an TLS handshake using tcpdump and analysing it with Wireshark: From Wiresharks TLS dissector: Server Name Indication extension Server Name list length: 28 Server Name Type: host_name (0) Server Name length: 25 Server Name: user:[email protected] ^^^^^^^^^^ From Wiresharks "Follow TCP stream": ...........a ....jV.. ......../.......D.&....R.+.,..... . .../.0...............z.{./.5.A... .....|.}.3.9.E.............2.8.D.......p............$."...user:[email protected]......#... ... ................. .............................. (PCAPs available on request. Actually did the test with a local server of mine. But it should be easy to reproduce, be it with any Linux distribution.) I did this test with Lynx from Debian Experimental (which has the current Lynx upstream release 2.9.0dev.8) as well as with Lynx from Debian 8 Jessie ELTS (which has Lynx 2.8.9dev.1) and both leak the password via SNI. I though assume that older releases of Lynx are probably also affected as well, at least if they or the according crypto libraries support SNI. But given that the symptoms Thorsten discovered stayed unreported for quite some years, I assume that this use case is a rather seldom one. Nevertheless only trying to use Lynx that way (and seeing it fail) already leaks the used password. IMHO this nevertheless needs a CVE-ID. Cc'ing Debian Security Team as well as the OSS Security mailing list for making them aware of this issue. I also updated the subject of this thread to make it less ambigous on other mailing lists. And I'm also Cc'ing the according Debian bug report which I created for tracking this issue in Debian: https://bugs.debian.org/991971 Kind regards, Axel -- ,''`. | Axel Beckert <[email protected]>, https://people.debian.org/~abe/ : :' : | Debian Developer, ftp.ch.debian.org Admin `. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5 `- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists
Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.
Recommend
-
7
MR头显Lynx R1开启众筹,众筹价格约600美元_VR陀螺 MR头显Lynx R1开启众筹,众筹价格约600美元 发布时间:2021-10-07 17:06 | 标签: MR头显...
-
5
Lynx:来自字节跳动的高性能跨端框架2021-12-09 18:24 InfoQ 编辑|邓艳琴嘉宾|师绍琨在跨端技术高速演进的背景下,字节跳动自...
-
12
Cosmonious High, Lynx Mixed Reality & More Another day, ano...
-
2
First Lynx VR-AR Headsets Planned To Ship In 'June The first sh...
-
10
新浪VR > 正文页 XR头显Lynx-R1将延迟到6-7月份推出...
-
8
怎么看待互联网裁员潮?最近一年,国内这些互联网公司都过得不太平。从今年年初开始,各个大厂都在裁员,从传出的消息,裁员比例从 10% 到 30% 不等,更惨的是一些不赚钱的边缘部门,面临直接裁撤整条业务线。去年年中,各个大...
-
7
MR头显创企Lynx宣布完成400万美元A轮融资_VR陀螺 ...
-
6
Lynx R1 Now Shipping 'Sometime This Summer' The first...
-
3
新浪VR > 正文页 法国XR头显创企Lynx完成400万美元A轮融资...
-
7
Global disabling of Certificate Expiry validation Global disabling of Certificate Expiry validation Oct 19, 2022 • Category
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK