Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL 证书检查问题 #2767

Closed
1 task done
litwak913 opened this issue Oct 11, 2023 · 5 comments
Closed
1 task done

SSL 证书检查问题 #2767

litwak913 opened this issue Oct 11, 2023 · 5 comments
Labels
· Bug 完成 该 Issue 已被处理,将在下次更新中实装

Comments

@litwak913
Copy link

litwak913 commented Oct 11, 2023

检查项

描述

PCL2 启动器有一个关于 SSL 证书检查的安全问题,不会验证 SSL 证书的有效性。

具体可以见 Application.xaml.vb 的 第 119 行:

ServicePointManager.ServerCertificateValidationCallback = New Security.RemoteCertificateValidationCallback(Function() As Boolean

这就意味着,一旦有人尝试进行中间人攻击去获取 Minecraft 登录凭据,那么 PCL2 将不会显示任何与 SSL 证书有关的警告。
理论上还可以做到获取外置登录服务的 accessToken ,下载时替换文件,修改内容等,影响较大。

重现步骤

使用 mitmproxy 或其他工具开启一个代理抓包,并且不安装自签名证书。
个人编写了一个辅助 poc 用于测试,配合 mitmdump 使用。
https://gist.github.com/litwak913/9b11e0306e19e4b6c6aa0dddaf655fe0

image
获取 accessToken 和 UUID 信息
image
插入 Profile JSON 内容

日志与附件

Log1.txt

@litwak913 litwak913 added · Bug 新反馈 需要社区初步确认其有效的新 Issue labels Oct 11, 2023
@Big-Cake-jpg Big-Cake-jpg added 等待确认 已经过社区确认,等待开发者确认 and removed 新反馈 需要社区初步确认其有效的新 Issue labels Oct 11, 2023
@LTCatt LTCatt added 处理中 开发者正在调查或处理该 Issue and removed 等待确认 已经过社区确认,等待开发者确认 labels Oct 12, 2023
@LTCatt
Copy link
Member

LTCatt commented Oct 19, 2023

由于修复可能导致难以预计的网络问题,等到下下个版本在快照版尝试修复

@LTCatt LTCatt added the 🟦 推迟 当前版本暂不处理,之后再说 label Oct 19, 2023
@litwak913
Copy link
Author

由于修复可能导致难以预计的网络问题,等到下下个版本在快照版尝试修复

主要是哪些网络问题?是为了兼容旧的系统环境还是?

@LTCatt
Copy link
Member

LTCatt commented Oct 23, 2023

之前是因为 Mojang 还是哪个第三方的 https 有问题,才加的这玩意儿,已经忘了……

@LTCatt LTCatt removed the 🟦 推迟 当前版本暂不处理,之后再说 label Oct 29, 2023
@LTCatt LTCatt closed this as completed Nov 21, 2023
@HexDragon-Bot HexDragon-Bot added 完成 该 Issue 已被处理,将在下次更新中实装 and removed 处理中 开发者正在调查或处理该 Issue labels Nov 21, 2023
@litwak913
Copy link
Author

64E9-8D3D-F90A-8B9F

@LTCatt
Copy link
Member

LTCatt commented Jan 21, 2024

你的解锁码:0NKMUpo74v8w+rvsu93HihqQHXDpO0mM
在 更多 → 关于与鸣谢 → 输入解锁码 中使用,谢谢支持~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
· Bug 完成 该 Issue 已被处理,将在下次更新中实装
Projects
None yet
Development

No branches or pull requests

4 participants