Files
nuclei/pkg/protocols/headless
Dwi Siswanto 3e93996471 fix(headless): data race when reading page history
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>
2025-12-11 05:57:28 +07:00
..
2025-10-28 14:19:12 +04:00
2025-10-28 14:19:06 +04:00