rapid7/metasploit-framework

View on GitHub

Showing 6,027 of 21,757 total issues

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

          [ 'CVE', '2021-3490' ],
          [ 'URL', 'https://www.openwall.com/lists/oss-security/2021/05/11/11' ],
          [ 'URL', 'https://github.com/chompie1337/Linux_LPE_eBPF_CVE-2021-3490' ], # Original PoC
          [ 'URL', 'https://www.zerodayinitiative.com/blog/2020/4/8/cve-2020-8835-linux-kernel-privilege-escalation-via-improper-ebpf-program-verification' ], # Discussess the techniques used to gain arbitrary R/W in kernel.
          [ 'URL', 'https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=049c4e13714ecbca567b4d5f6d563f05d431c80e' ],
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          ['CVE', '2020-16875'],
          ['CVE', '2020-17132'],
          ['URL', 'https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-16875'],
          ['URL', 'https://support.microsoft.com/en-us/help/4577352/security-update-for-exchange-server-2019-and-2016'],
          ['URL', 'https://srcincite.io/advisories/src-2020-0019/'],
Severity: Major
Found in modules/exploits/windows/http/exchange_ecp_dlp_policy.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          [ 'CVE', '2000-0917' ],
          [ 'OSVDB', '421' ],
          [ 'BID', '1712' ],
          [ 'US-CERT-VU', '382365' ],
          [ 'URL', 'http://www.cert.org/advisories/CA-2000-22.html' ],
Severity: Major
Found in modules/exploits/linux/misc/lprng_format_string.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          [ 'CVE', '2013-7409' ],
          [ 'BID', '62926' ],
          [ 'BID', '63896' ],
          [ 'EDB', '28855' ],
          [ 'EDB', '29549' ],
Severity: Major
Found in modules/exploits/windows/fileformat/allplayer_m3u_bof.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          ['CVE', '2023-33625'],
          ['CVE', '2020-15893'],
          ['CVE', '2019-20215'],
          ['URL', 'https://attackerkb.com/topics/uqicA23ecz/cve-2023-33625'],
          ['URL', 'https://github.com/zcutlip/exploit-poc/tree/master/dlink/dir-815-a1/upnp-command-injection'],
Severity: Major
Found in modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          ['BID', '90309'],
          ['CVE', '2016-4557'],
          ['EDB', '39772'],
          ['URL', 'https://bugs.chromium.org/p/project-zero/issues/detail?id=808'],
          ['URL', 'https://usn.ubuntu.com/2965-1/'],
Severity: Major
Found in modules/exploits/linux/local/bpf_priv_esc.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          ['CVE', '2014-9390'],
          ['URL', 'https://www.rapid7.com/blog/post/2015/01/01/12-days-of-haxmas-exploiting-cve-2014-9390-in-git-and-mercurial'],
          ['URL', 'http://git-blame.blogspot.com.es/2014/12/git-1856-195-205-214-and-221-and.html'],
          ['URL', 'http://article.gmane.org/gmane.linux.kernel/1853266'],
          ['URL', 'https://github.com/blog/1938-vulnerability-announced-update-your-git-clients'],
Severity: Major
Found in modules/exploits/multi/http/git_client_command_exec.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          [ 'CVE', '2008-3558' ],
          [ 'OSVDB', '47344' ],
          [ 'BID', '30578' ],
          [ 'EDB', '6220' ],
          [ 'URL', 'http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=849' ],
Severity: Major
Found in modules/exploits/windows/browser/webex_ucf_newobject.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

        ['URL', 'http://blog.trustlook.com/2013/09/04/alert-android-webview-addjavascriptinterface-code-execution-vulnerability/'],
        ['URL', 'https://labs.mwrinfosecurity.com/blog/2012/04/23/adventures-with-android-webviews/'],
        ['URL', 'http://50.56.33.56/blog/?p=314'],
        ['URL', 'https://labs.mwrinfosecurity.com/advisories/2013/09/24/webview-addjavascriptinterface-remote-code-execution/'],
        ['URL', 'https://github.com/mwrlabs/drozer/blob/bcadf5c3fd08c4becf84ed34302a41d7b5e9db63/src/drozer/modules/exploit/mitm/addJavaScriptInterface.py'],
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          ['CVE', '2021-42321'],
          ['URL', 'https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-42321'],
          ['URL', 'https://support.microsoft.com/en-us/topic/description-of-the-security-update-for-microsoft-exchange-server-2019-2016-and-2013-november-9-2021-kb5007409-7e1f235a-d41b-4a76-bcc4-3db90cd161e7'],
          ['URL', 'https://techcommunity.microsoft.com/t5/exchange-team-blog/released-november-2021-exchange-server-security-updates/ba-p/2933169'],
          ['URL', 'https://gist.github.com/testanull/0188c1ae847f37a70fe536123d14f398'],
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          ['CVE', '2022-41352'],
          ['URL', 'https://forums.zimbra.org/viewtopic.php?t=71153&p=306532'],
          ['URL', 'https://blog.zimbra.com/2022/09/security-update-make-sure-to-install-pax-spax/'],
          ['URL', 'https://www.openwall.com/lists/oss-security/2015/01/18/7'],
          ['URL', 'https://lists.gnu.org/archive/html/bug-cpio/2015-01/msg00000.html'],
Severity: Major
Found in modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          [ 'CVE', '2013-3214' ],
          [ 'CVE', '2013-3215' ],
          [ 'OSVDB', '95902' ],
          [ 'OSVDB', '95903' ],
          [ 'BID', '61558' ],
Severity: Major
Found in modules/exploits/multi/http/vtiger_soap_upload.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          ['ZDI', '23-920'],
          ['ZDI', '23-918'],
          ['CVE', '2023-38096'],
          ['CVE', '2023-38098'],
          ['CVE', '2016-1525'],
Severity: Major
Found in modules/exploits/windows/http/netgear_nms_rce.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57

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 28.

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 22 locations. Consider refactoring.
Open

          ['BID', '44914'],
          ['CVE', '2010-4170'],
          ['EDB', '15620'],
          ['URL', 'https://securitytracker.com/id?1024754'],
          ['URL', 'https://access.redhat.com/security/cve/cve-2010-4170'],
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          [ 'CVE', '2013-0074' ],
          [ 'CVE', '2013-3896' ],
          [ 'OSVDB', '91147' ],
          [ 'OSVDB', '98223' ],
          [ 'BID', '58327' ],
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

      ['4.8', '4.8.2'],
      ['4.9', '4.9.1'],
      ['5.0', '5.0.4'],
      ['5.1', '5.1.3'],
      ['5.2', '5.2.2'],
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          ['URL', 'https://github.com/Paradoxis/Flask-Unsign'],
          ['URL', 'https://vulcan.io/blog/cve-2023-27524-in-apache-superset-what-you-need-to-know/'],
          ['URL', 'https://www.horizon3.ai/cve-2023-27524-insecure-default-configuration-in-apache-superset-leads-to-remote-code-execution/'],
          ['URL', 'https://www.horizon3.ai/apache-superset-part-ii-rce-credential-harvesting-and-more/'],
          ['URL', 'https://github.com/horizon3ai/CVE-2023-27524/blob/main/CVE-2023-27524.py'],
Severity: Major
Found in modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          ['CVE', '2023-20198'],
          ['CVE', '2023-20273'],
          # Vendor advisories.
          ['URL', 'https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-iosxe-webui-privesc-j22SaA4z'],
          ['URL', 'https://blog.talosintelligence.com/active-exploitation-of-cisco-ios-xe-software/'],
Severity: Major
Found in modules/exploits/linux/misc/cisco_ios_xe_rce.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

          [ 'CVE', '2012-4681' ],
          [ 'OSVDB', '84867' ],
          [ 'URL', 'http://blog.fireeye.com/research/2012/08/zero-day-season-is-not-over-yet.html' ],
          [ 'URL', 'http://www.deependresearch.org/2012/08/java-7-vulnerability-analysis.html' ],
          [ 'URL', 'http://labs.alienvault.com/labs/index.php/2012/new-java-0day-exploited-in-the-wild/' ],
Severity: Major
Found in modules/exploits/multi/browser/java_jre17_exec.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/freebsd/local/rtld_execl_priv_esc.rb on lines 57..65
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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 22 locations. Consider refactoring.
Open

            ['BID', '37154'],
            ['CVE', '2009-4146'],
            ['CVE', '2009-4147'],
            ['SOUNDTRACK', 'https://www.youtube.com/watch?v=dDnhthI27Fg'],
            ['URL', 'https://seclists.org/fulldisclosure/2009/Nov/371'],
Severity: Major
Found in modules/exploits/freebsd/local/rtld_execl_priv_esc.rb and 21 other locations - About 20 mins to fix
modules/auxiliary/dos/http/hashcollision_dos.rb on lines 36..44
modules/auxiliary/scanner/http/wp_woocommerce_payments_add_user.rb on lines 61..69
modules/exploits/android/browser/webview_addjavascriptinterface.rb on lines 58..66
modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb on lines 32..40
modules/exploits/linux/http/zimbra_cpio_cve_2022_41352.rb on lines 44..52
modules/exploits/linux/local/bpf_priv_esc.rb on lines 48..56
modules/exploits/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe.rb on lines 53..61
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 48..56
modules/exploits/linux/local/systemtap_modprobe_options_priv_esc.rb on lines 43..51
modules/exploits/linux/misc/cisco_ios_xe_rce.rb on lines 52..65
modules/exploits/linux/misc/lprng_format_string.rb on lines 26..34
modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb on lines 70..78
modules/exploits/multi/browser/java_jre17_exec.rb on lines 43..51
modules/exploits/multi/http/git_client_command_exec.rb on lines 47..55
modules/exploits/multi/http/vtiger_soap_upload.rb on lines 33..41
modules/exploits/windows/browser/ms13_022_silverlight_script_object.rb on lines 40..48
modules/exploits/windows/browser/webex_ucf_newobject.rb on lines 40..48
modules/exploits/windows/fileformat/allplayer_m3u_bof.rb on lines 31..39
modules/exploits/windows/http/exchange_chainedserializationbinder_rce.rb on lines 45..54
modules/exploits/windows/http/exchange_ecp_dlp_policy.rb on lines 49..57
modules/exploits/windows/http/netgear_nms_rce.rb on lines 32..40

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 28.

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