Showing 121 of 338 total issues
Method run
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
return false unless super
emit_info 'Extracting table prefix...'
prefix = table_prefix
Method initialize
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize
super
update_info(
name: 'Advanced Custom Fields Remote File Inclusion',
Method initialize
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize
super
update_info(
name: 'Gwolle Guestbook Remote File Inclusion',
Method initialize
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize
super
update_info(
name: 'Photo Gallery Shell Upload',
Method initialize
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize
super
update_info(
name: 'IMPress Listings <= 2.0.1 Reflected XSS Shell Upload',
Method initialize
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize
super
update_info(
name: 'Universal Analytics <= 1.3.0 Authenticated XSS Shell Upload',
Method _register_comment_options
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def _register_comment_options
register_options([
StringOption.new(
name: 'comment_author',
desc: 'The author name to use when posting a comment',
Method initialize
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize
super
update_info(
name: 'WP Mobile Detector RFI Shell Upload',
Method run
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
return false unless super
body = {
'wpdm_profile' => {
Method initialize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize
super
update_info(
name: 'Custom Contact Forms Privilege Escalation',
Method initialize
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize
super
update_info(
name: 'Download Manager Privilege Escalation',
Method run
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
return false unless super
cookie = authenticate_with_wordpress(datastore['username'], datastore['password'])
return false unless cookie
Method run
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
Open
def run
return false unless super
cookie = authenticate_with_wordpress(username, password)
return false unless cookie
- Read upRead up
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 initialize
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize
super
update_info(
name: 'Super Socializer <= 7.10.6 Authentication Bypass',
Method initialize
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize
super
update_info(
name: 'Super Socializer <= 7.10.6 Authentication Bypass',
Method run
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
return false unless super
@credentials = [{
username: 'Username', password: 'Password Hash', email: 'E-mail'
Method initialize
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize
super
update_info(
name: 'Ultimate CSV Importer User Table Extract',
Method run
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
return false unless super
emit_info 'Preparing payload...'
payload_name = "#{Utility::Text.rand_alpha(rand(5..10))}.php"
Method run
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
return false unless super
emit_info 'Preparing payload...'
payload_name = "#{Utility::Text.rand_alpha(rand(5..10))}.php"
Method initialize
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize
super
update_info(
name: 'WordPress 4.2-4.7.2 - CSRF DoS',