From ca7142a6794feb4a5fad36288ce780ce5f7790d5 Mon Sep 17 00:00:00 2001 From: ekkelenk Date: Mon, 25 Mar 2024 15:37:59 +0100 Subject: [PATCH] Added headers to nginx example, updated docs and use false positives list in zap2junit.xml conversion. --- tests/docker/zap/README.md | 17 +++++- tests/docker/zap/nginx.conf | 3 +- tests/docker/zap/weboc-zap.conf | 6 +- tests/docker/zap/zap2junit.xsl | 103 ++++++++++++++++++-------------- 4 files changed, 79 insertions(+), 50 deletions(-) diff --git a/tests/docker/zap/README.md b/tests/docker/zap/README.md index 728ade978..3831538fb 100644 --- a/tests/docker/zap/README.md +++ b/tests/docker/zap/README.md @@ -1,14 +1,25 @@ +# ZAP +The ZAP tool is used to detect any security vulnerabilities in the Web OC. +It is important to configure the http servers with the correct security headers to comply with the OWASP rules. +In this directory the configuration files for NGINX and the ZAP tool are stored. + # nginx.conf The zap scanner run using NGINX. Specific security headers are added to the config to make the Web OC mostly compliant. In some cases the ZAP tool will report a warning that cannot be prevented. -In the weboc-zap.conf file these warnings are excluded with an explanation why. + +# weboc-zap.conf +In the weboc-zap.conf file warnings are excluded with an explanation why. + Among them are: - CSP: style-src unsafe-inline: The web framework used by the Web OC (Vue JS) is using inline css. - Sub Resource Integrity Attribute Missing: Not supported by the googles fonts css: - + - - + + + + + + + + + + + + + + + + + + - + + + + + + + : + + , , , + + + + + + + + + + On ignore list + + + + + + + + + + - - - - - - - - - - - - - - - - - : - - , , , - - - - - - - - - - - - - - - - - - - - - - + + + + + + + +