Yelp / fuzz-lightyear

A pytest-inspired, DAST framework, capable of identifying vulnerabilities in a distributed, micro-service ecosystem through chaos engineering testing and stateful, Swagger fuzzing.
Other
205 stars 25 forks source link

Add rerun flag to post-fuzz hooks #41

Closed OiCMudkips closed 4 years ago

OiCMudkips commented 4 years ago

While trying to add this internally, I found a use case where we need to rerun a hook. Specifically, when a server reads a nonce from the request, we need to regenerate this nonce on every new request. If this nonce is generated by a hook, then we can just re-run the hook to generate the nonce.

This PR adds a rerun parameter to the hook decorator so that fuzz-lightyear can rerun the hook if the same request is sent twice. Test included.

TODO: readme