<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>26972</bug_id>
          
          <creation_ts>2009-07-04 19:17:20 -0700</creation_ts>
          <short_desc>predictable random number generator used in web browsers</short_desc>
          <delta_ts>2015-09-24 10:49:16 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>41868</dup_id>
          
          <bug_file_loc>http://www.trusteer.com/temporary-user-tracking-in-major-browsers</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Gilbert">michael.s.gilbert</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>jmalonzo</cc>
    
    <cc>oliver</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>129819</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Gilbert">michael.s.gilbert</who>
    <bug_when>2009-07-04 19:17:20 -0700</bug_when>
    <thetext>hello,

it has been discovered that all of the major web browsers use a
predictable pseudo-random number generator (PRNG).  please see
reference [0]. the robust solution is to switch to a provably
unpredictable PRNG such as Blum Blum Shub [1,2].

[0] http://www.trusteer.com/temporary-user-tracking-in-major-browsers
[1] Lenore Blum, Manual Blum, and Michael Shub, &quot;A Simple Unpredictable
Pseudo-Random Number Generator,&quot; SIAM Journal on Computing, volume 15,
pages 364-383, May 1986.
[2] http://rng.doesntexist.org/gmpbbs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129820</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Gilbert">michael.s.gilbert</who>
    <bug_when>2009-07-04 19:28:09 -0700</bug_when>
    <thetext>this is already publicly disclosed, so there is no reason to restrict access to this report.  however, it seems i can&apos;t uncheck the box to do that...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129822</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2009-07-04 20:24:56 -0700</bug_when>
    <thetext>I have unchecked the box for you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129826</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2009-07-04 21:24:27 -0700</bug_when>
    <thetext>This is only a problem on Windows at the moment, where we found the existing cryptographically secure PRNG to be a hefty performance regression on some tests (I believe it was the JS iBench test).  Mac OS uses arc4random for all random numbers, which I believe is suitable, and is noted in the paper.  I think we should probably just include arc4random in the tree and call it a day.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129828</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Gilbert">michael.s.gilbert</who>
    <bug_when>2009-07-04 21:40:45 -0700</bug_when>
    <thetext>the paper does not mention webkit on linux.  what is the status of the PRNG there?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1128500</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-09-24 09:11:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/22839305&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1128527</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2015-09-24 10:49:16 -0700</bug_when>
    <thetext>Dupe:
Bug 41868: [JSC] Math.random is predictable which may lead to cross-domain information leakage and temporary user tracking attacks

*** This bug has been marked as a duplicate of bug 41868 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>