rapid7/metasploit-framework

View on GitHub
modules/exploits/multi/fileformat/ghostscript_failed_restore.rb

Summary

Maintainability
A
3 hrs
Test Coverage

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

  def initialize(info = {})
    super(update_info(info,
      'Name'              => 'Ghostscript Failed Restore Command Execution',
      'Description'       => %q{
        This module exploits a -dSAFER bypass in Ghostscript to execute
Severity: Major
Found in modules/exploits/multi/fileformat/ghostscript_failed_restore.rb - About 2 hrs to fix

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

      def exploit
        sploit = template
    
        # Replace our placeholder string with a random one
        sploit.sub!(PLACEHOLDER_STRING, Rex::Text.rand_text_alphanumeric(8..42))
    Severity: Minor
    Found in modules/exploits/multi/fileformat/ghostscript_failed_restore.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status