Class: Brakeman::CheckSendFile

Inherits:
CheckFileAccess
  • Object
show all
Defined in:
lib/brakeman/checks/check_send_file.rb

Overview

Checks for user input in send_file()

Instance Method Summary collapse

Instance Method Details

#run_checkObject



10
11
12
13
14
15
16
17
18
# File 'lib/brakeman/checks/check_send_file.rb', line 10

def run_check
  Brakeman.debug "Finding all calls to send_file()"

  methods = tracker.find_call :target => false, :method => :send_file

  methods.each do |call|
    process_result call
  end
end