TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Jia Tanning Go Code

33 点作者 zoidb7 个月前

3 条评论

rsc7 个月前
While you can create and build a local package with U+FE0E in its file name, you cannot create or download a module using that character in a file name. So you could run this attack in someone&#x27;s top-level repo but not in any of their dependencies. That&#x27;s something at least.<p><a href="https:&#x2F;&#x2F;go.googlesource.com&#x2F;mod&#x2F;+&#x2F;refs&#x2F;heads&#x2F;master&#x2F;module&#x2F;module.go#58" rel="nofollow">https:&#x2F;&#x2F;go.googlesource.com&#x2F;mod&#x2F;+&#x2F;refs&#x2F;heads&#x2F;master&#x2F;module&#x2F;m...</a> <a href="https:&#x2F;&#x2F;go.googlesource.com&#x2F;mod&#x2F;+&#x2F;refs&#x2F;heads&#x2F;master&#x2F;module&#x2F;module.go#272" rel="nofollow">https:&#x2F;&#x2F;go.googlesource.com&#x2F;mod&#x2F;+&#x2F;refs&#x2F;heads&#x2F;master&#x2F;module&#x2F;m...</a>
评论 #41971613 未加载
fnands7 个月前
&gt; I am not employed at the University of Minnesota so I don’t go around sending malicious patches just to see what would happen.<p>Lol, they will never live that one down.
kbolino7 个月前
A vulnerability illustrated here is that of packages having global state which is both security-critical and world-mutable. Such a vulnerability exists in the standard library, most notably (crypto&#x2F;rand).Reader which is <i>usually</i> fed by the system CSPRNG but can be overwritten to any io.Reader value. There has been some discussion around different ways to address this issue, but fixing it has generally been rejected by the language maintainers, e.g. <a href="https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;issues&#x2F;42713">https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;issues&#x2F;42713</a>, with the argument that fixing it directly just provides an illusion of security.