Sha256: a0a1aa44bfa94452eec7f3890b7a824da46c2250846964c9c0c9a3a612774b37

Contents?: true

Size: 1.09 KB

Versions: 13

Compression:

Stored size: 1.09 KB

Contents

module Dawn
  module Kb
    module OwaspRorCheatSheet

      class SensitiveFiles
        include PatternMatchCheck

        def initialize
          message = "Many Ruby on Rails apps are open source and hosted on publicly available source code repositories. Whether that is the case or the code is committed to a corporate source control system, there are certain files that should be either excluded or carefully managed." 

          super({
            :name=>"Owasp Ror CheatSheet: Sensitive Files",
            :kind=>Dawn::KnowledgeBase::PATTERN_MATCH_CHECK,
            :applies=>["rails"],
            :glob=>".gitignore",
            :aux_links=>["https://www.owasp.org/index.php/Ruby_on_Rails_Cheatsheet"],
            :message=>message,
            :check_family=>:owasp_ror_cheatsheet,
            :severity=>:info,
            :attack_pattern => ["/config/database.yml", "/config/initializers/secret_token.rb", "/db/seeds.rb", "/db/*.sqlite3"],
            :mitigation=>"Put sensitive files in your repository gitignore file"
          })
          # @debug = true

        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dawnscanner-1.6.9 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb
dawnscanner-1.6.8 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb
dawnscanner-1.6.7 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb
dawnscanner-1.6.6 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb
dawnscanner-1.6.5 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb
dawnscanner-1.6.4 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb
dawnscanner-1.6.3 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb
dawnscanner-1.6.2 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb
dawnscanner-1.6.1 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb
dawnscanner-1.6.0 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb
dawnscanner-1.5.2 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb
dawnscanner-1.5.1 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb
dawnscanner-1.5.0 lib/dawn/kb/owasp_ror_cheatsheet/sensitive_files.rb