Test HTTP/2 for HPACK bomb and window stall
To test for the HTTP/2 bomb and window stall vulnerability, send an HTTP/2 request to target.com with a large number of indexed references to a header in the dynamic table. This can be done by seeding the table with a header, then emitting thousands of 1-byte indexed references to it. At the same time, advertise a zero-byte flow-control window to prevent the server from freeing the allocated memory. The server is vulnerable if it becomes unresponsive or consumes a large amount of memory. You can use a tool like h2spec to generate the HTTP/2 requests. For example: h2spec -H 'header: value' -n 10000 -w 0 target.com This will send 10,000 requests with the same header, each referencing the previous one, and a zero-byte flow-control window. Monitor the server's response and memory usage to determine if it is vulnerable.
Follow #compression, #dos or #http2 for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.