rastating/wordpress-exploit-framework

View on GitHub

Showing 121 of 338 total issues

Method initialize has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def initialize
    super

    update_info(
      name: 'WP Marketplace <= 2.4.0 Arbitrary File Download',

    Method run has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def run
        return false unless super
    
        emit_info 'Creating new admin user...'
        res = execute_post_request(

      Method run has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def run
          return false unless super
      
          emit_info 'Preparing payload...'
          payload_name = "#{Utility::Text.rand_alpha(rand(5..10))}.php"
      Severity: Minor
      Found in lib/wpxf/modules/exploit/shell/infusionsoft_shell_upload.rb - About 1 hr to fix

        Method initialize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          def initialize
            super
        
            update_info(
              name: 'DW Question & Answer <= 1.4.2.2 Stored XSS Shell Upload',

          Method initialize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            def initialize
              super
          
              update_info(
                name: 'Simple Download Monitor File Download',

            Method initialize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              def initialize
                super
            
                update_info(
                  name: 'All-in-One Migration Export',

              Method initialize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                def initialize
                  super
              
                  update_info(
                    name: 'WPLMS Theme Privilege Escalation',
              Severity: Minor
              Found in lib/wpxf/modules/auxiliary/priv_esc/wplms_privilege_escalation.rb - About 1 hr to fix

                Method initialize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  def initialize
                    super
                
                    update_info(
                      name: 'Platform Theme Privilege Escalation',

                  Method initialize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    def initialize
                      super
                  
                      update_info(
                        name: 'EasyCart Plugin Privilege Escalation',

                    Method initialize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      def initialize
                        super
                    
                        update_info(
                          name: 'Download Manager Directory Listing Disclosure',

                      Method initialize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        def initialize
                          super
                      
                          update_info(
                            name: 'Ghost Plugin <= 0.5.5 - Unrestricted Export Download',

                        Method run has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                        Open

                          def run
                            return false unless super
                        
                            emit_info 'Preparing payload...'
                            payload_name = "#{Utility::Text.rand_alpha(rand(5..10))}.php"

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

                          def _dump_and_parse_hashes
                            unless reveals_one_row_per_request
                              res = _execute_hashdump_request
                              return _parse_hashdump_body(res.body)
                            end
                        Severity: Minor
                        Found in lib/wpxf/wordpress/hash_dump.rb - About 55 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 execute_user_command has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                        Open

                              def execute_user_command(command, args)
                                command = normalise_alised_commands(command)
                                if can_handle? command
                                  puts unless commands_without_output.include? command
                                  send(command, *args) if correct_number_of_args?(command, args)
                        Severity: Minor
                        Found in lib/wpxf/cli/console.rb - About 45 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 run has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                        Open

                          def run
                            return false unless super
                        
                            emit_info 'Preparing payload...'
                            theme_name = Utility::Text.rand_alpha(rand(5..10))
                        Severity: Minor
                        Found in lib/wpxf/modules/exploit/shell/mailpoet_newsletters_shell_upload.rb - About 45 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 sys_get_temp_dir has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                        Open

                            function sys_get_temp_dir() {
                              if (!empty(getenv('TMP'))) { return realpath(getenv('TMP')); }
                              if (!empty(getenv('TMPDIR'))) { return realpath(getenv('TMPDIR')); }
                              if (!empty(getenv('TEMP'))) { return realpath(getenv('TEMP')); }
                        
                        
                        Severity: Minor
                        Found in data/php/download_exec.php - About 45 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 run has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                        Open

                          def run
                            return false unless super
                        
                            emit_info 'Extracting table prefix...'
                            prefix = table_prefix

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

                          def run
                            return false unless super
                        
                            emit_info 'Preparing payload...'
                            payload_name = "#{Utility::Text.rand_alpha(rand(5..10))}.php"
                        Severity: Minor
                        Found in lib/wpxf/modules/exploit/shell/creative_contact_form_shell_upload.rb - About 45 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 run has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                        Open

                          def run
                            return false unless super
                        
                            emit_info 'Validating SQL...'
                            unless valid_query?
                        Severity: Minor
                        Found in lib/wpxf/modules/auxiliary/misc/simple_ads_manager_sql_injection.rb - About 45 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 run has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                        Open

                          def run
                            return false unless super
                        
                            emit_info 'Preparing payload...'
                            payload_name = "#{Utility::Text.rand_alpha(rand(5..10))}.php"
                        Severity: Minor
                        Found in lib/wpxf/modules/exploit/shell/infusionsoft_shell_upload.rb - About 45 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