hackedteam/vector-exploit

View on GitHub

Showing 219 of 389 total issues

File script.js has 1934 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/** @define {boolean} */
var ENABLE_DEBUG = true;

var INVISIBLE = true;

Severity: Major
Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 5 days to fix

    File webkit_rc3_plus_tea.py has 1125 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    #!/usr/bin/env python
    
    import re
    import os
    import sys
    Severity: Major
    Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 2 days to fix

      Function decrypt has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
      Open

          def decrypt(self, cipherIn, originalsize, mode, key, size, IV):
              # cipherIn = unescCtrlChars(cipherIn)
              if len(key) % size:
                  return None
              if len(IV) % 16:
      Severity: Minor
      Found in src/edn2/2014-004-AndroidBrowser/slowaes.py - About 1 day 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 decrypt has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
      Open

          def decrypt(self, cipherIn, originalsize, mode, key, size, IV):
              # cipherIn = unescCtrlChars(cipherIn)
              if len(key) % size:
                  return None
              if len(IV) % 16:
      Severity: Minor
      Found in src/ht-webkit-Android4-src/precompiled/debug/slowaes.py - About 1 day 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 decrypt has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
      Open

          def decrypt(self, cipherIn, originalsize, mode, key, size, IV):
              # cipherIn = unescCtrlChars(cipherIn)
              if len(key) % size:
                  return None
              if len(IV) % 16:
      Severity: Minor
      Found in src/ht-webkit-Android4-src/precompiled/release/slowaes.py - About 1 day 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 decrypt has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
      Open

          def decrypt(self, cipherIn, originalsize, mode, key, size, IV):
              # cipherIn = unescCtrlChars(cipherIn)
              if len(key) % size:
                  return None
              if len(IV) % 16:
      Severity: Minor
      Found in src/ht-webkit-Android4-src/ext/slowaes.py - About 1 day 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 do_GET has a Cognitive Complexity of 76 (exceeds 5 allowed). Consider refactoring.
      Open

          def do_GET(self):
      
              path = urlparse.urlparse(self.path).path
      
              #f = open('path.txt', 'a')
      Severity: Minor
      Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 1 day 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 stage2_overwrite has a Cognitive Complexity of 74 (exceeds 5 allowed). Consider refactoring.
      Open

      function stage2_overwrite(xsltobj, page, webcoretext) {
          
          var addr = page.base + 0x3000;
          var nobj = 0;
          var i;
      Severity: Minor
      Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 day 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 encrypt has a Cognitive Complexity of 70 (exceeds 5 allowed). Consider refactoring.
      Open

          def encrypt(self, stringIn, mode, key, size, IV):
              if len(key) % size:
                  return None
              if len(IV) % 16:
                  return None
      Severity: Minor
      Found in src/edn2/2014-004-AndroidBrowser/slowaes.py - About 1 day 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 encrypt has a Cognitive Complexity of 70 (exceeds 5 allowed). Consider refactoring.
      Open

          def encrypt(self, stringIn, mode, key, size, IV):
              if len(key) % size:
                  return None
              if len(IV) % 16:
                  return None
      Severity: Minor
      Found in src/ht-webkit-Android4-src/ext/slowaes.py - About 1 day 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 encrypt has a Cognitive Complexity of 70 (exceeds 5 allowed). Consider refactoring.
      Open

          def encrypt(self, stringIn, mode, key, size, IV):
              if len(key) % size:
                  return None
              if len(IV) % 16:
                  return None
      Severity: Minor
      Found in src/ht-webkit-Android4-src/precompiled/debug/slowaes.py - About 1 day 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 encrypt has a Cognitive Complexity of 70 (exceeds 5 allowed). Consider refactoring.
      Open

          def encrypt(self, stringIn, mode, key, size, IV):
              if len(key) % size:
                  return None
              if len(IV) % 16:
                  return None
      Severity: Minor
      Found in src/ht-webkit-Android4-src/precompiled/release/slowaes.py - About 1 day 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

      File py7zlib.py has 591 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      #!/usr/bin/python -u
      #
      # Python Bindings for LZMA
      #
      # Copyright (c) 2004-2010 by Joachim Bauch, mail@joachim-bauch.de
      Severity: Major
      Found in ht-2013-002-Word/pylzma.egg/py7zlib.py - About 1 day to fix

        File py7zlib.py has 591 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        #!/usr/bin/python -u
        #
        # Python Bindings for LZMA
        #
        # Copyright (c) 2004-2010 by Joachim Bauch, mail@joachim-bauch.de
        Severity: Major
        Found in ht-2013-003-Powerpoint/pylzma.egg/py7zlib.py - About 1 day to fix

          File py7zlib.py has 591 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          #!/usr/bin/python -u
          #
          # Python Bindings for LZMA
          #
          # Copyright (c) 2004-2010 by Joachim Bauch, mail@joachim-bauch.de
          Severity: Major
          Found in ht-2013-004-IE/pylzma.egg/py7zlib.py - About 1 day to fix

            Function do_POST has a Cognitive Complexity of 55 (exceeds 5 allowed). Consider refactoring.
            Open

                def do_POST(self):
                    
                    path = urlparse.urlparse(self.path).path
                    
                    # POST requests must start with ^/news/0123456789/
            Severity: Minor
            Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 1 day 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 stage2 has 196 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function stage2(page, base, iframe, xml, documentarea) {
                // Area available:
                // 0x3fff00 bytes starting at page.base (~4MB). Can't overwrite from pagebase+0x0 to pagebase+0x7.
                // page is aligned to 0x1000
            
            
            Severity: Major
            Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 7 hrs to fix

              File slowaes.py has 475 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              #!/usr/bin/python
              #
              # aes.py: implements AES - Advanced Encryption Standard
              # from the SlowAES project, http://code.google.com/p/slowaes/
              #
              Severity: Minor
              Found in src/edn2/2014-004-AndroidBrowser/slowaes.py - About 7 hrs to fix

                File slowaes.py has 475 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                #!/usr/bin/python
                #
                # aes.py: implements AES - Advanced Encryption Standard
                # from the SlowAES project, http://code.google.com/p/slowaes/
                #
                Severity: Minor
                Found in src/ht-webkit-Android4-src/precompiled/release/slowaes.py - About 7 hrs to fix

                  File slowaes.py has 475 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  #!/usr/bin/python
                  #
                  # aes.py: implements AES - Advanced Encryption Standard
                  # from the SlowAES project, http://code.google.com/p/slowaes/
                  #
                  Severity: Minor
                  Found in src/ht-webkit-Android4-src/ext/slowaes.py - About 7 hrs to fix
                    Severity
                    Category
                    Status
                    Source
                    Language