rapid7/metasploit-framework

View on GitHub

Showing 7,361 of 22,177 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

      update_info(
        info,
        'Name' => 'Zimbra sudo + postfix privilege escalation',
        'Description' => %q{
          This module exploits a vulnerable sudo configuration that permits the
Severity: Major
Found in modules/exploits/linux/local/zimbra_postfix_priv_esc.rb and 1 other location - About 1 hr to fix
modules/exploits/linux/local/zimbra_slapper_priv_esc.rb on lines 20..54

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 55.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

      if new_embedded_files
        new_catalog = new_catalog.gsub(/(Names \d+ \d R)/m, '\1' + "/OpenAction #{trailers[0].fetch('Size').to_i + 2} 0 R")
      elsif new_names
        new_catalog = new_catalog.gsub(/(Names \d+ \d R)/m, '\1' + "/OpenAction #{trailers[0].fetch('Size').to_i + 3} 0 R")
      else
modules/exploits/windows/fileformat/adobe_pdf_embedded_exe.rb on lines 236..242

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 55.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

  def find_or_create_note(opts)
    begin
      # create separate opts for find operation since the report operation uses slightly different keys
      # TODO: standardize option keys used for the find and report operations
      find_opts = opts.clone
lib/metasploit/framework/data_service/proxy/loot_data_proxy.rb on lines 19..38

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 55.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    super(update_info(info,
      'Name'           => 'VideoLAN VLC TiVo Buffer Overflow',
      'Description'    => %q{
          This module exploits a buffer overflow in VideoLAN VLC 0.9.4.
        By creating a malicious TY file, a remote attacker could overflow a
Severity: Major
Found in modules/exploits/windows/fileformat/videolan_tivo.rb and 1 other location - About 1 hr to fix
modules/exploits/windows/browser/apple_itunes_playlist.rb on lines 12..50

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 55.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    elsif new_embedded_files
      new_catalog = catalog.gsub(/(Pages \d+ \d R)/m, '\1' + "/OpenAction #{trailers[0].fetch('Size').to_i + 2} 0 R")
    elsif new_names
      new_catalog = catalog.gsub(/(Pages \d+ \d R)/m, '\1' + "/OpenAction #{trailers[0].fetch('Size').to_i + 3} 0 R")
    else
modules/exploits/windows/fileformat/adobe_pdf_embedded_exe.rb on lines 228..234

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 55.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
     'Name'          => 'Unix Command Shell, Double Reverse TCP SSL (openssl)',
     'Description'   => 'Creates an interactive shell through two inbound connections',
     'Author'        => 'hdm',
Severity: Major
Found in modules/payloads/singles/cmd/unix/reverse_openssl.rb and 8 other locations - About 1 hr to fix
modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_netcat_gaping_ipv6.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_socat_udp.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_bash.rb on lines 14..42
modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_socat_udp.rb on lines 14..36

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
     'Name'          => 'Unix Command Shell, Bind UDP (via socat)',
     'Description'   => 'Creates an interactive shell via socat',
     'Author'        => 'RageLtMan <rageltman[at]sempervictus>',
Severity: Major
Found in modules/payloads/singles/cmd/unix/bind_socat_udp.rb and 8 other locations - About 1 hr to fix
modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_netcat_gaping_ipv6.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_bash.rb on lines 14..42
modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_openssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_socat_udp.rb on lines 14..36

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
     'Name'          => 'Unix Command Shell, Reverse TCP (via netcat -e)',
     'Description'   => 'Creates an interactive shell via netcat',
     'Author'        => 'hdm',
Severity: Major
Found in modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb and 8 other locations - About 1 hr to fix
modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_netcat_gaping_ipv6.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_socat_udp.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_bash.rb on lines 14..42
modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_openssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_socat_udp.rb on lines 14..36

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
     'Name'          => 'Unix Command Shell, Reverse UDP (via socat)',
     'Description'   => 'Creates an interactive shell via socat',
     'Author'        => 'RageLtMan <rageltman[at]sempervictus>',
Severity: Major
Found in modules/payloads/singles/cmd/unix/reverse_socat_udp.rb and 8 other locations - About 1 hr to fix
modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_netcat_gaping_ipv6.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_socat_udp.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_bash.rb on lines 14..42
modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_openssl.rb on lines 14..36

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
     'Name'          => 'Unix Command Shell, Double Reverse TCP (telnet)',
     'Description'   => 'Creates an interactive shell through two inbound connections',
     'Author'        => 'hdm',
Severity: Major
Found in modules/payloads/singles/cmd/unix/reverse.rb and 8 other locations - About 1 hr to fix
modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_netcat_gaping_ipv6.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_socat_udp.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_bash.rb on lines 14..42
modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_openssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_socat_udp.rb on lines 14..36

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
     'Name'        => 'Unix Command Shell, Reverse TCP (via ncat)',
     'Description' => 'Creates an interactive shell via ncat, utilizing ssl mode',
     'Author'      => 'C_Sto',
Severity: Major
Found in modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb and 8 other locations - About 1 hr to fix
modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_netcat_gaping_ipv6.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_socat_udp.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_bash.rb on lines 14..42
modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_openssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_socat_udp.rb on lines 14..36

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
     'Name'          => 'Unix Command Shell, Bind TCP (via netcat -e)',
     'Description'   => 'Listen for a connection and spawn a command shell via netcat',
     'Author'        => 'hdm',
Severity: Major
Found in modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb and 8 other locations - About 1 hr to fix
modules/payloads/singles/cmd/unix/bind_netcat_gaping_ipv6.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_socat_udp.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_bash.rb on lines 14..42
modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_openssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_socat_udp.rb on lines 14..36

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
     'Name'          => 'Unix Command Shell, Reverse TCP (/dev/tcp)',
     'Description'   => %q{
        Creates an interactive shell via bash's builtin /dev/tcp.
Severity: Major
Found in modules/payloads/singles/cmd/unix/reverse_bash.rb and 8 other locations - About 1 hr to fix
modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_netcat_gaping_ipv6.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_socat_udp.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_openssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_socat_udp.rb on lines 14..36

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
     'Name'          => 'Unix Command Shell, Bind TCP (via netcat -e) IPv6',
     'Description'   => 'Listen for a connection and spawn a command shell via netcat',
     'Author'        => 'hdm',
modules/payloads/singles/cmd/unix/bind_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/bind_socat_udp.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_bash.rb on lines 14..42
modules/payloads/singles/cmd/unix/reverse_ncat_ssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_netcat_gaping.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_openssl.rb on lines 14..36
modules/payloads/singles/cmd/unix/reverse_socat_udp.rb on lines 14..36

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'Novell iPrint Client ActiveX Control target-frame Buffer Overflow',
      'Description'    => %q{
        This module exploits a stack buffer overflow in Novell iPrint Client 5.30. When
modules/exploits/windows/browser/lpviewer_url.rb on lines 11..42
modules/exploits/windows/browser/ms08_053_mediaencoder.rb on lines 11..43
modules/exploits/windows/browser/novelliprint_callbackurl.rb on lines 40..73
modules/exploits/windows/browser/softartisans_getdrivename.rb on lines 11..43
modules/exploits/windows/browser/trendmicro_extsetowner.rb on lines 39..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'iseemedia / Roxio / MGI Software LPViewer ActiveX Control Buffer Overflow',
      'Description'    => %q{
          This module exploits a stack buffer overflow in LPViewer ActiveX control (LPControll.dll 3.2.0.2). When
Severity: Major
Found in modules/exploits/windows/browser/lpviewer_url.rb and 5 other locations - About 1 hr to fix
modules/exploits/windows/browser/ms08_053_mediaencoder.rb on lines 11..43
modules/exploits/windows/browser/novelliprint_callbackurl.rb on lines 40..73
modules/exploits/windows/browser/novelliprint_target_frame.rb on lines 12..47
modules/exploits/windows/browser/softartisans_getdrivename.rb on lines 11..43
modules/exploits/windows/browser/trendmicro_extsetowner.rb on lines 39..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'Windows Media Encoder 9 wmex.dll ActiveX Buffer Overflow',
      'Description'    => %q{
          This module exploits a stack buffer overflow in Windows Media Encoder 9. When
Severity: Major
Found in modules/exploits/windows/browser/ms08_053_mediaencoder.rb and 5 other locations - About 1 hr to fix
modules/exploits/windows/browser/lpviewer_url.rb on lines 11..42
modules/exploits/windows/browser/novelliprint_callbackurl.rb on lines 40..73
modules/exploits/windows/browser/novelliprint_target_frame.rb on lines 12..47
modules/exploits/windows/browser/softartisans_getdrivename.rb on lines 11..43
modules/exploits/windows/browser/trendmicro_extsetowner.rb on lines 39..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'Trend Micro Internet Security Pro 2010 ActiveX extSetOwner() Remote Code Execution',
      'Description'    => %q{
          This module exploits a remote code execution vulnerability in Trend Micro
Severity: Major
Found in modules/exploits/windows/browser/trendmicro_extsetowner.rb and 5 other locations - About 1 hr to fix
modules/exploits/windows/browser/lpviewer_url.rb on lines 11..42
modules/exploits/windows/browser/ms08_053_mediaencoder.rb on lines 11..43
modules/exploits/windows/browser/novelliprint_callbackurl.rb on lines 40..73
modules/exploits/windows/browser/novelliprint_target_frame.rb on lines 12..47
modules/exploits/windows/browser/softartisans_getdrivename.rb on lines 11..43

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'SoftArtisans XFile FileManager ActiveX Control Buffer Overflow',
      'Description'    => %q{
          This module exploits a stack buffer overflow in SoftArtisans XFile FileManager ActiveX control
modules/exploits/windows/browser/lpviewer_url.rb on lines 11..42
modules/exploits/windows/browser/ms08_053_mediaencoder.rb on lines 11..43
modules/exploits/windows/browser/novelliprint_callbackurl.rb on lines 40..73
modules/exploits/windows/browser/novelliprint_target_frame.rb on lines 12..47
modules/exploits/windows/browser/trendmicro_extsetowner.rb on lines 39..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'Novell iPrint Client ActiveX Control call-back-url Buffer Overflow',
      'Description'    => %q{
          This module exploits a stack-based buffer overflow in Novell iPrint Client 5.42.
modules/exploits/windows/browser/lpviewer_url.rb on lines 11..42
modules/exploits/windows/browser/ms08_053_mediaencoder.rb on lines 11..43
modules/exploits/windows/browser/novelliprint_target_frame.rb on lines 12..47
modules/exploits/windows/browser/softartisans_getdrivename.rb on lines 11..43
modules/exploits/windows/browser/trendmicro_extsetowner.rb on lines 39..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 54.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language