Repository navigation
Description
Xray 26.7.11-26.7.28: Xray REALITY server rejects the hardcoded Xray version code sent by this software by default, causing this software unable to connect. They claims the purpose is to block clients with characteristics flaw, but it is absurd to determine the presence of such a flaw by the version code. Furthermore, the so-called "characteristics flaw" does not exist in the REALITY client implementation of this software unless the user explicitly enables the "disable REALITY X25519MLKEM768" option. Modifying the hardcoded version code does not help for all history versions of this software being blackly blocked, and can't prevent this software from being blackly blocked again in the future. Therefore, as a client-side user, you should demand that Xray, the root cause of this problem, resolve the problem, rather than demanding this software compromise itself to accommodate the issue; as a server-side user, you should boycott Xray and switch to a different server implementation. The characteristics flaw Xray claimed is in fact third-party software being forced to workaround the incompatibility issues caused by the X25519MLKEM768 breaking change created by Xray due to REALITY design limitation. However, Xray turned around and blamed third-party software.
Xray >= 26.9.8: Xray REALITY server removed the previous behavior in favor of rejecting TLS Client Hello without X25519MLKEM768 key share and TLS Client Hello with X25519MLKEM768 key share but after X25519 key share. This is also ridiculous and there is no feasible server-side workaround other than replacing Xray with other proxy software. As a result, all uTLS fingerprints other than chrome, firefox and safari will be unable to connect to Xray, and the opt-in "disable X25519MLKEM768" option will be invalid. For your information, in uTLS latest version (1.8.2), only hellochrome_148 fingerprint is compatible with such a stupid Xray server. uTLS added hellofirefox_148 and hellosafari_26_3 in recent commit but it has not been released yet, and there are tons of different TLS stacks all over the world with different characteristics. Xray called a fingerprint without X25519MLKEM768 key share a "strange fingerprint". We all know the parrot is dead, but Xray still want all client implementations to be the parrot.
Therefore, as a client-side user, you should demand that the root cause of this issue—Xray—remove all explicit restrictions and cease discriminatory practices, rather than asking the software to compromise in order to accommodate the problem; as a server-side user, you should boycott Xray, remove your Xray installation and switch to a different server implementation.
Activity
dyhkwong commentedon Sep 10, 2026
关于 XTLS/Xray-core#6477 (comment) :
REALITY 强依赖 X25519 key share,且服务端假定第一个 key share 必然是 X25519,破坏协议以适应新的 key share 是终究要发生的。为了解决已经在发生并将越来越严重的无法适应 X25519MLKEM768 key share 的问题,Xray 于 2025 年 5 月 13 日破坏协议以适应 X25519MLKEM768 key share。sing-box 于两个月后的 2025 年 7 月 20 日为服务端适配了此变更,不存在所谓的“迟迟不更新 REALITY 服务端的代码”的问题,更不存在所谓的“只有 trim 掉 X25519MLKEM768 才能连上 sing-box 服务端”的问题。sing-box/mihomo/各大 iOS 客户端完全是为了兼容旧版 REALITY 服务端才被迫 trim 掉 X25519MLKEM768,是因为协议设计者在设计协议之初未考虑到 TLS 的潜在变化而导致的,而不是所谓的“私人恩怨”和“历史纠葛”问题。
编辑:经 RPRX 指正,这不是服务端假定第一个 key share 必然是 X25519 导致的,此现象是因为 REALITY 没有协议规范,被迫阅读瞎眼代码逆向工程出来的,实际上没有此现象。实际上是服务端无法从 X25519MLKEM768 中取 32 位长的 X25519 的问题。
dyhkwong commentedon Sep 10, 2026
另外,建议先查证 trim X25519MLKEM768 做法的出处,此做法甚至要早于 REALITY 的破坏性变更,此时 uTLS 新版的指纹的 X25519MLKEM768 不兼容 REALITY,不 trim X25519MLKEM768 已经足以使相当数量的客户端配置无法工作。
MetaCubeX/mihomo@577f64a
drownrat commentedon Sep 11, 2026
dyhkwong commentedon Sep 12, 2026
XTLS/Xray-core#6477 (comment)
说“软件必须从根本上做好安全设计、消除人为因素影响,确保即使是什么都不懂的 endest user 也不至于裸奔”,对于私下报告的安全漏洞却偷偷修复瞒天过海、让用户因为人为因素不知情地被迫裸奔的项目不配谈用户数据安全问题。
中间人拿到客户端配置对用户 MITM 属于用户不按照操作方式使用导致的自食其果,不属于协议问题。即使如此,基于 TLS 的协议仅拿到客户端配置仍然无法 MITM。REALITY 等魔改 TLS 认证流程的协议属于自己制造了别的协议不存在的问题再自己解决,解决完了还要吹嘘自己解决了一个别人不存在的问题。
因为协议本身的局限性,导致所有代理软件的服务端无一幸免。客户端如果不 trim 掉 X25519MLKEM768,也能连上任何跟进了破坏性变更的新版服务端,但有可能连不上未跟进破坏性变更的任何代理软件的旧版服务端。这是协议本身而不是特定的实现导致的。
MetaCubeX/mihomo@577f64a mihomo trim X25519MLKEM768 的时候新版协议都还没出来,也比 sing-box trim 的行为要早,那大家猜猜是为了兼容协议造成的所有服务端的问题,还是为了兼容某个特定的服务端呢?
因为协议本身恶心导致客户端们被迫提供 trim 掉 X25519MLKEM768 的选项/提供不 trim 掉 X25519MLKEM768 的选项/trim 掉 X25519MLKEM768,竟能倒反天罡倒打一耙。
要不是因为要兼容旧版 REALITY 服务端(包含但不限于 Xray),你觉得客户端很想加 trim 掉 X25519MLKEM768 的选项吗?哪怕破坏性变更后的协议不要叫 REALITY,或者叫 REALITY v2,让客户段视此为不向后兼容的新协议处理,你觉得客户端会需要被迫强兼你那破旧版协议吗?
drownrat commentedon Sep 14, 2026
drownrat commentedon Sep 14, 2026
drownrat commentedon Sep 24, 2026
dyhkwong commentedon Sep 24, 2026
unpin 是不想因为观众在 issue 区寻找问题解决办法的时候不小心污染到观众眼球。既然还在吵,那也只好 pin 回去,以方便观众寻找“有的 uTLS 指纹连不上服务端”的解决办法了。
经 RPRX 指正,没有服务端假定第一个 key share 必然是 X25519 的现象。此现象是因为 REALITY 没有协议规范,被迫阅读 REALITY 的瞎眼代码而错误反推出来的,已修改。此误读不影响协议只考虑当下能跑、不考虑未来 break 从而实际造成了破坏性变更所造成的问题。
dyhkwong commentedon Sep 24, 2026
https://t.me/projectXray/5273923
感谢你妈的感谢,我不在乎你提及是谁发现的安全漏洞,只要求你向用户披露安全漏洞的存在,你他妈看看别人是什么态度对待 mitm 漏洞的 https://github.com/HyNetworks/hysteria/releases/tag/app%2Fv2.6.4 ,再看看你自己是他妈的什么态度,你他妈的提及自己修了能被 mitm 的漏洞了吗,合着没人爆出来就永远隐瞒下去了,万幸群友看不过眼帮我爆出来了,不然我还得继续昧着良心不披露让你一直逍遥法外,不然你他妈的永远都不会披露漏洞的存在,继续打着所谓安全的名头坑害用户。谁闲得无聊审计你家宝贝代码啊,我不过是为了适配那烂到家的分享链接 pcs 去看了一眼都能发现有明显的安全漏洞罢了。