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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Compromised NPM packages of ua-parser-JS (0.7.29, 0.8.0, 1.0.0)

38 点作者 nop_slide超过 3 年前

4 条评论

flanbiscuit超过 3 年前
discussion is already going on reddit: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;qdlela&#x2F;breaking_npm_package_uaparserjs_with_more_than_7m&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;qdlela&#x2F;breakin...</a><p>The compromised package: <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;ua-parser-js" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;ua-parser-js</a><p>7,680,657 downloads a week<p>Version 0.7.28 is still good, anything above that is compromised<p>&gt; 0.7.29 includes scripts that download and execute binaries. From the command-line arguments, one of them looks like a cryptominer, but that might be just for camouflage.<p>Probably one of the biggest reasons it&#x27;s downloaded so much is that it&#x27;s a direct dependency of Facebook&#x27;s &quot;fbjs&quot; package which is downloaded 5.7mil&#x2F;week: <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;fbjs" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;fbjs</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;fbjs&#x2F;blob&#x2F;main&#x2F;packages&#x2F;fbjs&#x2F;package.json#L72" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;fbjs&#x2F;blob&#x2F;main&#x2F;packages&#x2F;fbjs&#x2F;pac...</a><p>Someone has already filed an issue: <a href="https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;fbjs&#x2F;issues&#x2F;464" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;fbjs&#x2F;issues&#x2F;464</a>
olex超过 3 年前
Maintainer already released clean versions &quot;on top of&quot; the compromised ones, and NPM acted on reports and removed the compromised versions as well.<p>Compromised (and no longer downloadable from NPM):<p>- 0.7.29<p>- 0.8.0<p>- 1.0.0<p>Clean:<p>- 0.7.28 (last version before the hijack)<p>- 0.7.30<p>- 0.8.1<p>- 1.0.1<p>Compromised versions apparently contained a cryptomining tool capable of running on Linux, and a trojan that extracts sensitive data (saved passwords, cookies) from browsers on Windows. Both are blocked by up-to-date Windows Defender and presumably other AV software.
评论 #28970173 未加载
justinlilly超过 3 年前
For those looking, this is the diff. I&#x27;d be really curious how that got in.<p><a href="https:&#x2F;&#x2F;my.diffend.io&#x2F;npm&#x2F;ua-parser-js&#x2F;0.7.28&#x2F;0.7.29" rel="nofollow">https:&#x2F;&#x2F;my.diffend.io&#x2F;npm&#x2F;ua-parser-js&#x2F;0.7.28&#x2F;0.7.29</a>
cyanydeez超过 3 年前
id abandon the entire name spzce.