secureCodeBox/secureCodeBox

View on GitHub

Showing 195 of 515 total issues

Avoid too many return statements within this function.
Open

    return ["X-Content-Type-Options Header", INFORMATIONAL];
Severity: Major
Found in scanners/nikto/parser/parser.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return ["Identified Software", INFORMATIONAL];
    Severity: Major
    Found in scanners/nikto/parser/parser.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return ["Path Traversal", HIGH];
      Severity: Major
      Found in scanners/nikto/parser/parser.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return createAutomountedServiceAccountTokenFinding(finding);
        Severity: Major
        Found in scanners/kubeaudit/parser/parser.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return "traditional-md"
          Severity: Major
          Found in scanners/zap-advanced/scanner/zapclient/zap_automation.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return createMissingNetworkPolicyFinding(finding);
            Severity: Major
            Found in scanners/kubeaudit/parser/parser.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return null;
              Severity: Major
              Found in scanners/kubeaudit/parser/parser.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  return ["Nikto Finding", INFORMATIONAL];
                Severity: Major
                Found in scanners/nikto/parser/parser.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return "traditional-html-plus"
                  Severity: Major
                  Found in scanners/zap-advanced/scanner/zapclient/zap_automation.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return ["Identified Software", INFORMATIONAL];
                    Severity: Major
                    Found in scanners/nikto/parser/parser.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return ["Potential Vulnerability", HIGH];
                      Severity: Major
                      Found in scanners/nikto/parser/parser.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return "traditional-html"
                        Severity: Major
                        Found in scanners/zap-advanced/scanner/zapclient/zap_automation.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return ["Outdated Software", MEDIUM];
                          Severity: Major
                          Found in scanners/nikto/parser/parser.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return 3
                            Severity: Major
                            Found in scanners/zap-advanced/scanner/zapclient/context/zap_context.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return None
                              Severity: Major
                              Found in scanners/zap-advanced/scanner/zapclient/context/zap_context.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return None

                                  Avoid too many return statements within this function.
                                  Open

                                                      return configuration

                                    Function parse has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    async function parse(scanResults) {
                                      if (typeof (scanResults) === "string") // empty file
                                        return [];
                                    
                                      const wpscanVersion = scanResults.banner.version;
                                    Severity: Minor
                                    Found in scanners/wpscan/parser/parser.js - About 25 mins to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Function configure_contexts has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        def configure_contexts(self):
                                            """Configures the ZAP instance with the given list of contexts."""
                                    
                                            if self.get_config.has_configurations:
                                    
                                    
                                    Severity: Minor
                                    Found in scanners/zap-advanced/scanner/zapclient/context/zap_context.py - About 25 mins to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Method ScanSpec.DeepCopyInto has a Cognitive Complexity of 21 (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    func (in *ScanSpec) DeepCopyInto(out *ScanSpec) {
                                        *out = *in
                                        if in.ResourceMode != nil {
                                            in, out := &in.ResourceMode, &out.ResourceMode
                                            *out = new(ResourceMode)
                                    Severity: Minor
                                    Found in operator/apis/execution/v1/zz_generated.deepcopy.go - About 25 mins to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language