<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/wwang37">Weiqi Wang</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1221">#1221</a>
</p>
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto">I followed <a href="https://gitlab.com/gnutls/gnutls/-/blob/master/fuzz/README.md">https://gitlab.com/gnutls/gnutls/-/blob/master/fuzz/README.md</a> to compile gnutls with <code>afl-clang-fast</code>. Then when I use <code>gnutls-serv</code> and <code>gnutls-cli</code>, the <code>session-id</code> and <code>random</code> are fixed to <code>00:2D:4E:C4:AC:68:92:9A:38:B5:F2:E2:53:D3:BB:01:FD:BE:3C:63:38:55:99:C2:FE:3D:DE:A7:75:05:56:31</code></p>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto">commit <a href="https://gitlab.com/gnutls/gnutls/-/commit/f17e1be2ac1e6b0c761002f9f5741565ca926fcf" data-original="f17e1be2" data-link="false" data-link-reference="false" data-project="179611" data-commit="f17e1be2ac1e6b0c761002f9f5741565ca926fcf" data-reference-type="commit" data-container="body" data-placement="top" title="Merge branch 'wip/dueno/certtool-cdp' into 'master'" class="gfm gfm-commit has-tooltip">f17e1be2</a></p>
<p dir="auto">3.7.0</p>
<h2 dir="auto">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-hidden="true"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)</h2>
<p dir="auto">Ubuntu</p>
<h2 dir="auto">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true"></a>How reproducible:</h2>
<p dir="auto">Steps to Reproduce:</p>
<ul dir="auto">
<li>Use AFL to compile gnutls</li>
<li>Run gnutls-serv</li>
<li>Run gnutls-cli two times and capture traffic</li>
</ul>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<p dir="auto">The <code>session-id</code> and <code>random</code> are the same across sessions. In this capture file, <code>session-id</code> and <code>random</code> of client hello, <code>session-id</code> and <code>random</code> of server hello are all fixed to <code>00:2D:4E:C4:AC:68:92:9A:38:B5:F2:E2:53:D3:BB:01:FD:BE:3C:63:38:55:99:C2:FE:3D:DE:A7:75:05:56:31</code></p>
<p dir="auto"><a href="https://gitlab.com/gnutls/gnutls/uploads/e43b9af820429d32112b7b3314346f8c/gnutls_capture.pcap" data-link="true" class="gfm">gnutls_capture.pcap</a></p>
<p dir="auto">Here is a capture using openssl client so that the client hello doesn't contain <code>session-id</code> and uses unique <code>random</code>. However, <code>gnutls-serv</code> still responds with server hello containing the same <code>session-id</code> and <code>random</code>.</p>
<p dir="auto"><a href="https://gitlab.com/gnutls/gnutls/uploads/b1c7e17f7c4cb8e48c92eaae9fad621e/openssl_capture.pcap" data-link="true" class="gfm">openssl_capture.pcap</a></p>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">The <code>random</code> and <code>session-id</code> are generated correctly.</p>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1221">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/a8a913c6a8b5ed10305b1dbbf40cf197/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1221"}}</script>


</p>
</div>
</body>
</html>