Lucene search
+L

GNU Classpath 0.97.2 - 'gnu.java.security.util.PRNG' Class Entropy (1)

🗓️ 05 Dec 2008 00:00:00Reported by Jack LloydType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 24 Views

Weakness in GNU Classpath PRNG may lead to cryptographic security compromis

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2008-5659
5 Dec 200800:00
circl
cve
CVE
CVE-2008-5659
17 Dec 200820:00
cve
cvelist
Cvelist
CVE-2008-5659
17 Dec 200820:00
cvelist
exploitdb
Exploit DB
GNU Classpath 0.97.2 - 'gnu.java.security.util.PRNG' Class Entropy (2)
5 Dec 200800:00
exploitdb
euvd
EUVD
EUVD-2008-5630
7 Oct 202500:30
euvd
nvd
NVD
CVE-2008-5659
17 Dec 200820:30
nvd
prion
Prion
Design/Logic Flaw
17 Dec 200820:30
prion
susecve
SUSE CVE
SUSE CVE-2008-5659
15 Feb 202306:05
susecve
ubuntucve
UbuntuCve
CVE-2008-5659
17 Dec 200820:30
ubuntucve
source: https://www.securityfocus.com/bid/32909/info

GNU Classpath is prone to a weakness that may result in weaker cryptographic security because its psuedo-random number generator (PRNG) lacks entropy.

Attackers may leverage this issue to obtain sensitive information that can lead to further attacks.

Classpath 0.97.2 is vulnerable; other versions may also be affected.

import gnu.java.security.util.PRNG;

class PRNGTest {
   public static void main(String args[])
      {
      long t = System.currentTimeMillis();

      System.out.println("Time in ms is " + t);

      PRNG prng = PRNG.getInstance();

      byte buffer[] = new byte[40];

      prng.nextBytes(buffer, 0, buffer.length);

      for(int i = 0; i != buffer.length; ++i)
         {
         // There must be an easier way to do this (right?)
         int intval = buffer[i];

         if(intval <= 0)
            intval += 256;

         String s = Integer.toHexString(intval);

         if(s.length() == 1)
            s = "0" + s;

         System.out.print(s);
         }
      System.out.println("");
      }
   };

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

28 Mar 2019 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.03346
24