Giter Club home page Giter Club logo

Comments (3)

musalbas avatar musalbas commented on August 17, 2024

Can you expand further by "match the server's version"? Note, I didn't write the original PoC used.

from heartbleed-masstest.

nlitsme avatar nlitsme commented on August 17, 2024

currently the heartbeat packet is fixed to hb = h2bin(''' 18 03 02 00 03 01 40 00''')
-> always version = 03.02 ( == tls1.1 )

if you would connect to a server running version 03.01 ( == tls1.0 )

the server would respond to the heartbeat request with a 'protocol_version alert' and then disconnect.

so you should match the version from the server_hello packet.

the hb packet should be changed like this: hb=hb[:2] + chr(ver&0xff) + hb[3:] in the loop checking for the serverhellodone message

you can check this by running a vulnerable openssl like this:

openssl s_server -key server.key -cert server-cer.pem -accept 4433 -msg -ssl3

and running the ssltest.py script against it. the current ssltest will not mark that server as vulnerable.

btw, there is another bug in ssltest.py: the 'hb' packet is sent twice, while once is sufficient.
first in is_vulnerable, second in hit_hb.

i will send you a pull request with a patch later.

from heartbleed-masstest.

musalbas avatar musalbas commented on August 17, 2024

Fixed in #28

from heartbleed-masstest.

Related Issues (10)

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.