Dont allow users to update loot.data

GSoC/Meterpreter_Web_Console
James Barnett 2019-01-16 10:01:22 -06:00
parent dc7d611780
commit d6462fed63
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ module Msf::DBManager::Loot
def update_loot(opts)
::ActiveRecord::Base.connection_pool.with_connection {
wspace = Msf::Util::DBManager.process_opts_workspace(opts, framework, false)
raise ArgumentError, "Updating the data attribute is not allowed." if opts[:data]
opts[:workspace] = wspace if wspace
id = opts.delete(:id)