mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-11-10 04:01:31 -10:00
Include Port, Scheme, and URL in the deduplication key so distinct inputs that redirect to the same matched URL remain separate findings. Encode field and collection lengths to prevent ambiguous keys, and sort metadata keys to make hashing deterministic. Protect the LevelDB lookup and insert with a mutex to prevent concurrent calls from accepting the same finding more than once. Version the stored keys and document the upgrade behavior. Existing report databases may report previous findings once again because old hashes cannot recover the missing input fields. Fixes #7745 Signed-off-by: Dwi Siswanto <[email protected]>