secureCodeBox/secureCodeBox

View on GitHub

Showing 195 of 515 total issues

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 ["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 ["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 ["Potential Backup File", 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 ["Embedded Device", 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 "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 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 createNonRootUserNotEnforcedFinding(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 ["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"
                        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 "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 None

                              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 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 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 main has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    async function main() {
                                      console.log("Starting Parser");
                                      let scan = await extractScan();
                                      let parseDefinition = await extractParseDefinition(scan);
                                      const resultFileUrl = process.argv[2];
                                    Severity: Minor
                                    Found in parser-sdk/nodejs/parser-wrapper.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 getCategory has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    function getCategory(target) {
                                        let category = "Image Vulnerability";
                                        if (target.endsWith("package-lock.json") || target == "Node.js") {
                                          category = "NPM Package Vulnerability";
                                        } else if (target.endsWith("Gemfile.lock")) {
                                    Severity: Minor
                                    Found in scanners/trivy/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

                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language