Uploaded image for project: 'Rules Repository'
  1. Rules Repository
  2. RSPEC-4507

Delivering code in production with debug features activated is security-sensitive

    Details

    • Message:
      Make sure this debug feature is deactivated before delivering the code in production.
    • Default Severity:
      Minor
    • Impact:
      Low
    • Likelihood:
      Low
    • Default Quality Profiles:
      Sonar way
    • Targeted languages:
      ABAP, APEX, C, C++, Cobol, CSS, Flex, Go, HTML, JavaScript, Kotlin, Objective-C, PL/I, PL/SQL, RPG, Ruby, Rust, Scala, Solidity, Swift, T-SQL, TypeScript, VB6, XML
    • Covered Languages:
      C#, Java, PHP, Python, VB.Net
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      1min
    • Analysis Scope:
      Main Sources
    • CWE:
      CWE-489, CWE-215
    • OWASP:
      A3
    • ESLint:
      no-debugger, no-alert
    • Fortify:
      cakephp_misconfiguration_debug_information
    • PMD:
      AvoidPrintStackTrace

      Description

      Delivering code in production with debug features activated is security-sensitive. It has led in the past to the following vulnerabilities:

      An application's debug features enable developers to find bugs more easily and thus facilitate also the work of attackers. It often gives access to detailed information on both the system running the application and users.

      Ask Yourself Whether

      • the code or configuration enabling the application debug features is deployed on production servers.
      • the application runs by default with debug features activated.

      There is a risk if you answered yes to any of those questions.

      Recommended Secure Coding Practices

      Do not enable debug features on production servers.

      See

        Attachments

          Issue Links

          1.
          Java RSPEC-4710 Language-Specification Active Unassigned
          2.
          PHP RSPEC-4711 Language-Specification Active Unassigned
          3.
          C# RSPEC-4885 Language-Specification Active Unassigned
          4.
          VB.NET RSPEC-5027 Language-Specification Active Unassigned
          5.
          Python RSPEC-5234 Language-Specification Active Unassigned
          6.
          JavaScript RSPEC-5246 Language-Specification Active Lars Svensson (Inactive)
          7.
          Xml RSPEC-5599 Language-Specification Active Unassigned

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alexandre.gigleux Alexandre Gigleux
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: