Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,8 @@ helm upgrade --install nmap secureCodeBox/nmap --set=cascadingRules.enabled=true

### Service Autodiscovery - Managed-by label assumed to be presented for all scans
Old versions of the operator did not set `app.kubernetes.io/managed-by` label. Starting with V4 the service autodiscovery will assume every scheduled scan created by the autodiscovery will have this label. This means that older scheduled scans without the label will not be detected by the service autodiscovery and new duplicate scheduled scans will be created. Old scheduled scans without the `app.kubernetes.io/managed-by` label must be deleted manually.
➡️ [Reference: #1349](https://github.com/secureCodeBox/secureCodeBox/pull/1349)
➡️ [Reference: #1349](https://github.com/secureCodeBox/secureCodeBox/pull/1349)
### Rename host to hostname in zap findings
The `zap` and `zap-advanced` parsers where changed to increase the consistency between the different SCB scanners. The `zap` and `zap-advanced` findings will now report `host` as `hostname`.

➡️ [Reference: #1346](https://github.com/secureCodeBox/secureCodeBox/pull/1346)
40 changes: 20 additions & 20 deletions scanners/zap/examples/demo-bodgeit-baseline-scan/findings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"severity": "LOW",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "298",
"zap_solution": 'Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: "Content-Security-Policy" for Chrome 25+, Firefox 23+ and Safari 7+, "X-Content-Security-Policy" for Firefox 4.0+ and Internet Explorer 10+, and "X-WebKit-CSP" for Chrome 14+ and Safari 6+.',
Expand Down Expand Up @@ -117,7 +117,7 @@
"severity": "MEDIUM",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "280",
"zap_solution": "Most modern Web browsers support the X-Frame-Options HTTP header. Ensure it's set on all web pages returned by your site (if you expect the page to be framed only by pages on your server (e.g. it's part of a FRAMESET) then you'll want to use SAMEORIGIN, otherwise if you never expect the page to be framed, you should use DENY. ALLOW-FROM allows specific websites to frame the web page in supported web browsers).",
Expand Down Expand Up @@ -242,7 +242,7 @@
"severity": "LOW",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "3",
"zap_count": "337",
"zap_solution": 'Ensure that your web server, application server, load balancer, etc. is configured to suppress the "Server" header or provide generic details.',
Expand Down Expand Up @@ -367,7 +367,7 @@
"severity": "INFORMATIONAL",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "1",
"zap_count": "51",
"zap_solution": "Manually confirm that the timestamp data is not sensitive, and that the data cannot be aggregated to disclose exploitable patterns.",
Expand Down Expand Up @@ -492,7 +492,7 @@
"severity": "MEDIUM",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "102",
"zap_solution": 'Do not use a target attribute, or if you have to then also add the attribute: rel="noopener noreferrer".',
Expand Down Expand Up @@ -617,7 +617,7 @@
"severity": "LOW",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "316",
"zap_solution": "Ensure that the application/web server sets the Content-Type header appropriately, and that it sets the X-Content-Type-Options header to 'nosniff' for all web pages.If possible, ensure that the end user uses a standards-compliant and modern web browser that does not perform MIME-sniffing at all, or that can be directed by the web application/web server to not perform MIME-sniffing.",
Expand Down Expand Up @@ -742,7 +742,7 @@
"severity": "LOW",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "29",
"zap_solution": "Phase: Architecture and DesignUse a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.For example, use anti-CSRF packages such as the OWASP CSRFGuard.Phase: ImplementationEnsure that your application is free of cross-site scripting issues, because most CSRF defenses can be bypassed using attacker-controlled script.Phase: Architecture and DesignGenerate a unique nonce for each form, place the nonce into the form, and verify the nonce upon receipt of the form. Be sure that the nonce is not predictable (CWE-330).Note that this can be bypassed using XSS.Identify especially dangerous operations. When the user performs a dangerous operation, send a separate confirmation request to ensure that the user intended to perform that operation.Note that this can be bypassed using XSS.Use the ESAPI Session Management control.This control includes a component for CSRF.Do not use the GET method for any request that triggers a state change.Phase: ImplementationCheck the HTTP Referer header to see if the request originated from an expected page. This could break legitimate functionality, because users or proxies may have disabled sending the Referer for privacy reasons.",
Expand Down Expand Up @@ -867,7 +867,7 @@
"severity": "INFORMATIONAL",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "1",
"zap_count": "7",
"zap_solution": "Validate all input and sanitize output it before writing to any HTML attributes.",
Expand Down Expand Up @@ -927,7 +927,7 @@
"severity": "LOW",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "4",
"zap_solution": "Remove the private IP address from the HTTP response body. For comments, use JSP/ASP/PHP comment instead of HTML/JavaScript comment which can be seen by client browsers.",
Expand Down Expand Up @@ -972,7 +972,7 @@
"severity": "MEDIUM",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "5",
"zap_solution": "Review the source code of this page. Implement custom error pages. Consider implementing a mechanism to provide a unique error reference/identifier to the client (browser) while logging the details on the server side and not exposing them to the user.",
Expand Down Expand Up @@ -1022,7 +1022,7 @@
"severity": "INFORMATIONAL",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "4",
"zap_solution": "This is an informational alert and so no changes are required.",
Expand Down Expand Up @@ -1067,7 +1067,7 @@
"severity": "MEDIUM",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "3",
"zap_solution": "Protect the connection using HTTPS or use a stronger authentication mechanism",
Expand Down Expand Up @@ -1107,7 +1107,7 @@
"severity": "INFORMATIONAL",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "2",
"zap_solution": "Ensure each page is setting the specific and appropriate content-type value for the content being delivered.",
Expand Down Expand Up @@ -1140,7 +1140,7 @@
"severity": "LOW",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "4",
"zap_solution": "Ensure that the SameSite attribute is set to either 'lax' or ideally 'strict' for all cookies.",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"severity": "INFORMATIONAL",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "1",
"zap_count": "2",
"zap_solution": "Do not allow user input to control cookie names and values. If some query string parameters must be set in cookie values, be sure to filter out semicolon's that can serve as name/value pair delimiters.",
Expand Down Expand Up @@ -1224,7 +1224,7 @@
"severity": "INFORMATIONAL",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "1",
"zap_count": "5",
"zap_solution": "Remove all comments that return information that may help an attacker and fix any underlying problems they refer to.",
Expand Down Expand Up @@ -1269,7 +1269,7 @@
"severity": "LOW",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "1",
"zap_solution": "Ensure that the HttpOnly flag is set for all cookies.",
Expand Down Expand Up @@ -1300,7 +1300,7 @@
"severity": "INFORMATIONAL",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "2",
"zap_solution": "Remove all comments that return information that may help an attacker and fix any underlying problems they refer to.",
Expand Down Expand Up @@ -1333,7 +1333,7 @@
"severity": "LOW",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "1",
"zap_solution": "Review the source code of this page. Implement custom error pages. Consider implementing a mechanism to provide a unique error reference/identifier to the client (browser) while logging the details on the server side and not exposing them to the user.",
Expand Down Expand Up @@ -1363,7 +1363,7 @@
"severity": "LOW",
"attributes":
{
"host": "bodgeit.demo-targets.svc",
"hostname": "bodgeit.demo-targets.svc",
"zap_confidence": "2",
"zap_count": "1",
"zap_solution": "Disable debugging messages before pushing to production.",
Expand Down
Loading