Reduce passive scanner logging for messages that were deleted
See original GitHub issueI deleted a bunch of stuff from the Sites Tree while there was still a passive scan queue.
- The passive scanner probably doesn’t need to log the full trace on these.
- Could the queue be modified when things are deleted from the Sites Tree?
Versions: Java: 11.0.13 ZAP: Dev
68347 [ZAP-PassiveScan-4] ERROR org.zaproxy.zap.extension.pscan.PassiveScanTask - Parser failed on record 387 from History table
org.parosproxy.paros.network.HttpMalformedHeaderException: No history reference for id 387 type=2
at org.parosproxy.paros.model.HistoryReference.getHttpMessage(HistoryReference.java:454) ~[main/:?]
at org.zaproxy.zap.extension.pscan.PassiveScanTask.run(PassiveScanTask.java:101) ~[main/:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:829) ~[?:?]
68348 [ZAP-PassiveScan-1] ERROR org.zaproxy.zap.extension.pscan.PassiveScanTask - Parser failed on record 388 from History table
org.parosproxy.paros.network.HttpMalformedHeaderException: No history reference for id 388 type=2
at org.parosproxy.paros.model.HistoryReference.getHttpMessage(HistoryReference.java:454) ~[main/:?]
at org.zaproxy.zap.extension.pscan.PassiveScanTask.run(PassiveScanTask.java:101) ~[main/:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:829) ~[?:?]
68348 [ZAP-PassiveScan-4] ERROR org.zaproxy.zap.extension.pscan.PassiveScanTask - Parser failed on record 389 from History table
org.parosproxy.paros.network.HttpMalformedHeaderException: No history reference for id 389 type=2
at org.parosproxy.paros.model.HistoryReference.getHttpMessage(HistoryReference.java:454) ~[main/:?]
at org.zaproxy.zap.extension.pscan.PassiveScanTask.run(PassiveScanTask.java:101) ~[main/:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:829) ~[?:?]
68348 [ZAP-PassiveScan-1] ERROR org.zaproxy.zap.extension.pscan.PassiveScanTask - Parser failed on record 390 from History table
org.parosproxy.paros.network.HttpMalformedHeaderException: No history reference for id 390 type=2
at org.parosproxy.paros.model.HistoryReference.getHttpMessage(HistoryReference.java:454) ~[main/:?]
at org.zaproxy.zap.extension.pscan.PassiveScanTask.run(PassiveScanTask.java:101) ~[main/:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:829) ~[?:?]
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Nessus disk space usage - Tenable Community
How to clear some space in Nessus and what files can be deleted. ... Check the main log file within Nessus which is...
Read more >How to Recover Deleted Text Messages: Your Complete Guide
Method 2: Recover deleted texts messages from iCloud website · Step 1: Log in to iCloud.com using your Apple ID · Step 2:...
Read more >Take response actions on a device in Microsoft Defender for ...
Take response actions on a device such as isolating devices, collecting an investigation package, managing tags, running an av scan, ...
Read more >Passive Reconnaissance - an overview | ScienceDirect Topics
During passive reconnaissance, an attacker may unintentionally expose information to a target from the nodes that are active in these tasks. In this...
Read more >FAQ - Passive BLE Monitor integration - GitHub Pages
Passively monitors BLE messages from Xiaomi Mijia BLE MiBeacon, Qingping, ATC, ... To get a log with the available MAC addresses, enable logger...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The passive scanner does not have a queue as such, it’s just a counter for the history ID.
IMO it could just log as debug. If the user deleted the message it’s safe to assume that the message will no longer be scanned.
Agreed. We could always log the trace just on debug level or similar