跳到正文
Hacker News· hasheddan·· 2 小时前AI 评分38

又一起 C 语言核心代码漏洞:musl libc 与 sshd 的 "*" 哨兵值冲突

*sshole, or when are we going to get rid of C?

AI 导读

musl libc 的 crypt 函数对过长密码返回 "*",与 Unix 中 "*" 表示锁定账户的约定冲突,叠加 sshd 对锁定账户也做哈希处理,导致无 PAM 的 musl 系统(如官方 Alpine AWS 镜像)上未认证用户可拿到(可能是 root 的)shell。

来源:Hacker News · sunshowers.io