-
Notifications
You must be signed in to change notification settings - Fork 364
Description
Proposal
Continuing from #622, I believe it would be beneficial to add additional parameters to Session.fuzz() for fine-tuning the generation of testcases. The current method of recursive generation may cause BooFuzz to revisit already-sent payloads.
Therefore I would suggest/request the following:
- An optional
min_depthparameter that specifies the minimum combinatorial count ofFuzzablemutations to use in testcases - An optional
unique_onlyparameter that modifies the test generation logic to ignore mutation ordering when determining if a testcase has already been visited
I have included example code in the discussion answer that demonstrates how this can behave as well as the performance speedup in doing so.
Use-Case
Our test targets are rate-limited and the pre-/post-testcase callbacks will likely add significant processing time for checks/verification of results. Reducing the quantity of redundant testcases will help us optimize our time and ensure that we can reasonably perform testing in our approaching window. Other users may benefit from the reduction of redundant testcases when they include a large number of primitives in a payload.
Anything else?
The code example provided is a demonstration of the benefit(s) from this request and by no means an expectation of how it should be implemented.