<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated></updated>
  <generator>https://nostr.ae</generator>

  <title>Nostr notes by </title>
  <author>
    <name></name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://nostr.ae/npub14w9s3hsqcjvzzmdh3c27tg70vr96wme6np3vy3gxtt4876m54q3qf93nf8.rss" />
  <link href="https://nostr.ae/npub14w9s3hsqcjvzzmdh3c27tg70vr96wme6np3vy3gxtt4876m54q3qf93nf8" />
  <id>https://nostr.ae/npub14w9s3hsqcjvzzmdh3c27tg70vr96wme6np3vy3gxtt4876m54q3qf93nf8</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://nostr.ae/nevent1qqspl4uc65gdvn4mrzzwsfa9vr3xvcgug4dapkls6mj7tsfc4qjzsqgzyz4ckzx7qrzfsgtdk78ptedreasvhfm082vx9sj9qedw5lmtwj5zympuk0g</id>
    
      <title type="html">📅 Original date posted:2018-04-10 📝 Original message:On 10 ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqspl4uc65gdvn4mrzzwsfa9vr3xvcgug4dapkls6mj7tsfc4qjzsqgzyz4ckzx7qrzfsgtdk78ptedreasvhfm082vx9sj9qedw5lmtwj5zympuk0g" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqszn4gn0h0my6kxqwvq3hdlg3dy60ngrts8dl8q3r8c2utjeyy068spzvnpy&#39;&gt;nevent1q…vnpy&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2018-04-10&lt;br/&gt;📝 Original message:On 10 Apr 2018, at 00:39, mus at musalbas.com wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; The original disclosure didn&amp;#39;t contain any information about the library&lt;br/&gt;&amp;gt; in question, so I did some digging.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I think that the vulnerability disclosure is referring to a pre-2013&lt;br/&gt;&amp;gt; version of jsbn, a JavaScript crypto library. Before it used the CSRNG&lt;br/&gt;&amp;gt; in the Web Crypto API, it tried to use nsIDOMCrypto, but incorrectly did&lt;br/&gt;&amp;gt; a string comparison when checking the browser version.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; In practice though, this doesn&amp;#39;t really matter, because&lt;br/&gt;&amp;gt; navigator.appVersion &amp;lt; &amp;#34;5&amp;#34; returns true anyway for old browsers. The&lt;br/&gt;&amp;gt; real issue is that modern browsers don&amp;#39;t have window.crypto.random&lt;br/&gt;&amp;gt; defined, so Bitcoin wallets using a pre-2013 version of jsbn may not be&lt;br/&gt;&amp;gt; using a CSPRNG, when run on a modern browser.&lt;br/&gt;&lt;br/&gt;Yes, it looks like high-quality entropy via crypto.getRandomValues was only&lt;br/&gt;added in Tom Wu&amp;#39;s latest version (v1.4) in July 2013.&lt;br/&gt;&lt;br/&gt;Note that even with v1.4, it still does not use high-quality entropy for&lt;br/&gt;Internet Explorer, because getRandomValues is provided under window.msCrypto&lt;br/&gt;for that browser.&lt;br/&gt;&lt;br/&gt;  &lt;a href=&#34;http://www-cs-students.stanford.edu/~tjw/jsbn/rng.js&#34;&gt;http://www-cs-students.stanford.edu/~tjw/jsbn/rng.js&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&amp;gt; As is noted though, even if a CSPRNG is used, the library passes the&lt;br/&gt;&amp;gt; output of the CSPRNG through RC4, which generates some biased bits,&lt;br/&gt;&amp;gt; leading to possible private key recovery.&lt;br/&gt;&lt;br/&gt;I think this is the real issue: even if high-quality entropy is utilised, the&lt;br/&gt;RNG is RC4-based, which is known to generate biased output.&lt;br/&gt;&lt;br/&gt;Finally, note that even Chrome used RC4 for crypto.getRandomValues at one&lt;br/&gt;point (as recently as 2015)!&lt;br/&gt;&lt;br/&gt;  &lt;a href=&#34;https://bugs.chromium.org/p/chromium/issues/detail?id=552749&#34;&gt;https://bugs.chromium.org/p/chromium/issues/detail?id=552749&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;--&lt;br/&gt;Jason Davies, &lt;a href=&#34;https://www.jasondavies.com/&#34;&gt;https://www.jasondavies.com/&lt;/a&gt;
    </content>
    <updated>2023-06-07T18:11:34Z</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsqd2grv8n8mjye24fdnymp23km09tjhuft459mj4rkxwfppw4ya3gzyz4ckzx7qrzfsgtdk78ptedreasvhfm082vx9sj9qedw5lmtwj5zysndznm</id>
    
      <title type="html">📅 Original date posted:2018-04-09 📝 Original message:These ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsqd2grv8n8mjye24fdnymp23km09tjhuft459mj4rkxwfppw4ya3gzyz4ckzx7qrzfsgtdk78ptedreasvhfm082vx9sj9qedw5lmtwj5zysndznm" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqst0teelxpfaxlvmareml5tjf43z7t5mvyr408csyg9250vqnrdgns2u0q4r&#39;&gt;nevent1q…0q4r&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2018-04-09&lt;br/&gt;📝 Original message:These issues all stem from the RC4-based RNG implementation (with insecure&lt;br/&gt;fallback entropy) in Tom Wu&amp;#39;s jsbn library, published here:&lt;br/&gt;&lt;a href=&#34;http://www-cs-students.stanford.edu/~tjw/jsbn/&#34;&gt;http://www-cs-students.stanford.edu/~tjw/jsbn/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Please refer to Tom Wu&amp;#39;s URL, or this more up-to-date fork of Tom Wu&amp;#39;s code&lt;br/&gt;(published to NPM): &lt;a href=&#34;https://github.com/andyperlitch/jsbn&#34;&gt;https://github.com/andyperlitch/jsbn&lt;/a&gt; -- my repository on&lt;br/&gt;GitHub was only ever intended to be a straight mirror of Tom Wu&amp;#39;s code (created&lt;br/&gt;over 7 years ago!).  I&amp;#39;ll probably delete my mirror repository given that there&lt;br/&gt;are now better JavaScript bignum alternatives, and in light of this report.&lt;br/&gt;&lt;br/&gt;Jason&lt;br/&gt;&lt;br/&gt;&amp;gt; On 9 Apr 2018, at 22:11, mus at musalbas.com wrote:&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; Here&amp;#39;s the code in question: &lt;a href=&#34;https://github.com/jasondavies/jsbn/pull/7&#34;&gt;https://github.com/jasondavies/jsbn/pull/7&lt;/a&gt;&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; Best,&lt;br/&gt;&amp;gt; &lt;br/&gt;&amp;gt; Mustafa&lt;br/&gt;&lt;br/&gt;--&lt;br/&gt;Jason Davies, &lt;a href=&#34;http://www.jasondavies.com/&#34;&gt;http://www.jasondavies.com/&lt;/a&gt;
    </content>
    <updated>2023-06-07T18:11:33Z</updated>
  </entry>

</feed>