You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My guess is Brakeman doesn't know what bill_params is, and is warning because the code is doing a mass assignment, period. Otherwise, you would be getting a high confidence warning and probably be more disappointed. I suppose Brakeman could check for only or slice, since those signal intent.
Yeah, agreed checking for only or slice would be the way to improve this. I'm not quite sure it's worth it in the wake of strong_parameters, but wanted to report nonetheless.
You all asked for false positive reports so here we go. :wink: Here's a Mass Assignment false positive I found today:
In this case, the developer is using
Hash#onlyto filter params (even though strong_parameters is not in use in this repo).On the plus side, this was flagged as "Weak" confidence.
The text was updated successfully, but these errors were encountered: