Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity

      Description

      Sensitive Code Example

      Imports System.Security.Cryptography
      
      Sub ComputeHash()
      
          ' Review all instantiations of classes that inherit from HashAlgorithm, for example:
          Dim hashAlgo As HashAlgorithm = HashAlgorithm.Create() ' Sensitive
          Dim hashAlgo2 As HashAlgorithm = HashAlgorithm.Create("SHA1") ' Sensitive
          Dim sha As SHA1 = New SHA1CryptoServiceProvider() ' Sensitive
          Dim md5 As MD5 = New MD5CryptoServiceProvider() ' Sensitive
      
          ' ...
      End Sub
      
      Class MyHashAlgorithm
          Inherits HashAlgorithm ' Sensitive
      
          ' ...
      End Class
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              duncan.pocklington Duncan Pocklington
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: