No reaction to “Active Scan *” menu item (OWASP ZAP)
※当サイトにはプロモーションが含まれています。
公開日:
更新日:
Infrequently I run into the situation where ZAP has no reaction when I right click a node on [Sites] tab and click one of the “Active Scan *” menu items. I’m just gonna write about this topic on my blog for now because of its poor-reproducibility.
Yesterday I was able to look into this issue a little when I debugged ZAP and (un?)luckily it happened. What I learned from the investigation are the following.
- When
actionPerformedmethod ofPerformActionsActionListenerclass inPopupMenuItemHttpMessageContainer.javafile is executed,referenceHttpMessageContainer.get()returnsnull. So a process ends before doing ActiveScan. - An object referred to
referenceHttpMessageContaineris created by executingnew DefaultSelectableHistoryReferencesContainer(...)inshowPopupMenuIfTriggeredmethod, which is inSiteMapPanel.javafile. - The type of
referenceHttpMessageContainerfiled isWeakReference<HttpMessageContainer>, so it needs reference(s) from other objects to keep on existing. - The inner class
MessageContainerPopupMenuInvokerinPopupMenuUtilsclass hasmessageContainerfield, which refers to the same object asreferenceHttpMessageContainerfield ofPopupMenuItemHttpMessageContainerclass. - An instance of
MessageContainerPopupMenuInvokerclass is created during the process run by right clicking a node on [Sites] tab.
But still, what kind of situation causes the field referenceHttpMessageContainer to lose its reference to a container object?
* Environment: OWASP ZAP 2.3.1
[Last updated: 28 Oct. 2014]