mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-01-31 15:53:10 +08:00
The `(*Page).HistoryData` was being read w/o holding the mutex lock after `(*Page).ExecuteActions()` returns, while the background hijack goroutine could still be writing to it via `(*Page).addToHistory()`. Copy the first history item by value while holding RLock to avoid racing with concurrent append ops. Fixes #6686. Signed-off-by: Dwi Siswanto <git@dw1.io>