Comments (3)
Can you expand further by "match the server's version"? Note, I didn't write the original PoC used.
from heartbleed-masstest.
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.
Fixed in #28
from heartbleed-masstest.
Related Issues (10)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heartbleed-masstest.