expertiza/expertiza

View on GitHub
app/controllers/lock_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Unsafe reflection method const_get called with parameter value
Open

    lockable = Object.const_get(params[:type]).find(params[:id])
Severity: Critical
Found in app/controllers/lock_controller.rb by brakeman

Brakeman reports on several cases of remote code execution, in which a user is able to control and execute code in ways unintended by application authors.

The obvious form of this is the use of eval with user input.

However, Brakeman also reports on dangerous uses of send, constantize, and other methods which allow creation of arbitrary objects or calling of arbitrary methods.

There are no issues that match your filters.

Category
Status