Download: http://rubygems.org/gems/paratrooper-newrelic Vulnerable Code: paratrooper-newrelic-1.0.1/lib/paratrooper-newrelic.rb exposes API key 24 def setup(options = {}) 25 %x[curl https://heroku.newrelic.com/accounts/#{account_id}/applicati ons/#{application_id}/ping_targets/disable -X POST -H "X-Api-Key: #{api_key} "] 26 end 27 28 def teardown(options = {}) 29 %x[curl https://heroku.newrelic.com/accounts/#{account_id}/applicati ons/#{application_id}/ping_targets/enable -X POST -H "X-Api-Key: #{api_key}" ] 30 end