SpeciesFileGroup/taxonworks

View on GitHub
app/views/tasks/projects/data/index.html.erb

Summary

Maintainability
Test Coverage

Unsafe reflection method safe_constantize called with model attribute
Open

              <tr>

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.

Unsafe reflection method safe_constantize called with model attribute
Open

            <% a = @project.send(r)&.count %>

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