[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FD] heartbleed OpenSSL bug CVE-2014-0160



Unless I'm mistaken, the following memcmp is vulnerable to a remote
timing attack.
https://github.com/openssl/openssl/blob/master/ssl/ssl_lib.c#L1974
static int ssl_session_cmp(const SSL_SESSION *a,const SSL_SESSION *b)  
{  
  if (a->ssl_version != b->ssl_version)  
       return(1);  
  if (a->session_id_length != b->session_id_length)  
       return(1);  
  return(memcmp(a->session_id,b->session_id,a->session_id_length));  
}  

On Tue, 2014-04-08 at 03:10 +0300, Kirils Solovjovs wrote:
> We are doomed.
> 
> Description: http://www.openssl.org/news/vulnerabilities.html
> Article dedicated to the bug: http://heartbleed.com/
> Tool to check if TLS heartbeat extension is supported:
> http://possible.lv/tools/hb/
> 
> A missing bounds check in the handling of the TLS heartbeat extension
> can be used to reveal up to 64kB of memory to a connected client or server.
> 
> 1.0.1[ abcdef] affected.
> 
> 
> P.S. Happy Monday!
> 
> _______________________________________________
> Sent through the Full Disclosure mailing list
> http://nmap.org/mailman/listinfo/fulldisclosure
> Web Archives & RSS: http://seclists.org/fulldisclosure/



_______________________________________________
Sent through the Full Disclosure mailing list
http://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: http://seclists.org/fulldisclosure/