Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS version returned in the response isn't matching with the ClientHello TLS Handshake version #1

Closed
IndranilKhedkar opened this issue Feb 12, 2024 · 1 comment

Comments

@IndranilKhedkar
Copy link

We observed that though the TLS Handshake Version after decoding ClientHello request is 771, the GinHandlerFunc is returning TLS Version as 772 from the connectionState object.

image

Sample Response:

{"akamai_fp":"|0|0|","cookies":"","http2":{"InitialSetting":null,"ConnFlow":0,"OrderHeaders":null,"Priority":{"StreamDep":0,"Exclusive":false,"Weight":0}},"ja3":"772,49195-49199-49196-49200-52393-52392-49161-49171-49162-49172-156-157-47-53-49170-10-4865-4866-4867,0-5-10-11-13-65281-23-18-43-51,29-23-24-25,0","ja3n":"772,49195-49199-49196-49200-52393-52392-49161-49171-49162-49172-156-157-47-53-49170-10-4865-4866-4867,,29-23-24-25,0","ja4":"t13d191000_702199bc00d8_976ee909108b","ja4h":"ge11nn000000_cd680697de12_e3b0c44298fc_e3b0c44298fc","negotiatedProtocol":"","orderHeaders":["Host","User-Agent","Accept-Encoding"],"tls":{"Ciphers":[49195,49199,49196,49200,52393,52392,49161,49171,49162,49172,156,157,47,53,49170,10,4865,4866,4867],"Curves":[29,23,24,25],"Extensions":[0,5,10,11,13,65281,23,18,43,51],"Points":[0],"Protocols":null,"Versions":[772,771],"Algorithms":[2052,1027,2055,2053,2054,1025,1281,1537,1283,1539,513,515],"RandomTime":"2084-10-20 08:38:46 +0530 IST","RandomBytes":"53b984dac62e86e542624b080e72290eb29b15475f8dd9e7b9bc1a9f","SessionId":"972bc5baec285ecd2806aeaabf43390425f32f11b28cc08481ef72d973713a77","CompressionMethods":"00"},"tlsVersion":772,"userAgent":"Go-http-client/1.1"}
@gospider007
Copy link
Owner

ClientHello 请求后的 TLS 握手版本 并不能反应客户端支持哪一个 tls 版本,所以我用connectionState对象返回 TLS 版本 来判断客户端真实支持的tls 版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants