OtherDevOpsGene / zap-sonar-plugin

Integrates OWASP Zed Attack Proxy reports into SonarQube
GNU General Public License v3.0
69 stars 29 forks source link

Added rules for baseline scan. Added multi-site support. Added support for instances with nested URI #23

Closed cvtienhoven closed 6 years ago

cvtienhoven commented 6 years ago

In the current version of ZAP, the report XML can contain muliple <Site /> elements. In the zap-sonar-plugin, all sites will be looped over, but only the last site gets eventually reported. I added support to add the alertitems for all sites.

In the current version of ZAP, the report XML contains <instance/> elements that contain the <uri/>, <method/> etc.. The plugin didn't evaluate the <instances/>, so URI etc. weren't present in the description. I added handling of those elements.

I also added a view rules that are evaluated in the baseline scan and need to be present on the SonarQube server (best effort).