GithubHelp home page GithubHelp logo

ECDHE not working when server hello, certificate, server key exchange are encapsulated in single record layer about scapy-ssl_tls HOT 5 CLOSED

tintinweb avatar tintinweb commented on May 28, 2024
ECDHE not working when server hello, certificate, server key exchange are encapsulated in single record layer

from scapy-ssl_tls.

Comments (5)

alexmgr avatar alexmgr commented on May 28, 2024

Hi @perrin-ay,

Thanks for taking the time to write the detailed bug report.
Stacked handshakes are super painful to deal with, and I thought we addressed that for good a while back with #13 ;).
I have an idea why this is happening, but I don't have time to address this right now. Fixing insert in ssl_tls_crypto to iterate on handshakes instead of records should do the trick. I'll pick this up when i have a bit of time.

Thanks again!

from scapy-ssl_tls.

perrin-ay avatar perrin-ay commented on May 28, 2024

Sounds great. Thank you much!

from scapy-ssl_tls.

alexmgr avatar alexmgr commented on May 28, 2024

Hi @perrin-ay,

I have had to fix this in order to get TLS 1.3 to dissect properly. Could you chekout the tls1.3 branch and try it out?

I have had to slightly change the interface of the TLSHandshake layer to make this generic enough, so you'll need to slightly adapt your script. For example, a client hello now becomes:

TLSRecord(version=tls_version) / TLSHandshakes(handshakes=[TLSHandshake() /
        TLSClientHello(version=tls_version, cipher_suites=[TLSCipherSuite.ECDHE_RSA_WITH_AES_128_GCM_SHA256, ])])

You can also now create stacked handshakes, ala java, but more importantly dissection works properly in all cases.

Would you mind giving this a try and letting me know if this fixes your problem?

Thanks

from scapy-ssl_tls.

perrin-ay avatar perrin-ay commented on May 28, 2024

Hey @alexmgr ,

This fixed the problem. Thanks again for looking into this ! cheers

from scapy-ssl_tls.

alexmgr avatar alexmgr commented on May 28, 2024

Thanks for verifying!

from scapy-ssl_tls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.