Project

General

Profile

Actions

Bug #18788

closed

Let Rails to log forbidden attributes

Added by Lukas Zapletal about 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Rails
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

By default Rails 4.x does not show forbidden attributes in production in log or in the exception itself:

http://api.rubyonrails.org/classes/ActionController/Parameters.html

I see no reason not to log it, possible attacker needs access to logs in order to find which attribute was denied.

This makes debugging much harder.

Actions

Also available in: Atom PDF