brakeman icon indicating copy to clipboard operation
brakeman copied to clipboard

A static analysis security vulnerability scanner for Ruby on Rails applications

Results 133 brakeman issues
Sort by recently updated
recently updated
newest added

This MR adds additional CSRF deactivation checks as detailed in presidentbeef/brakeman#1545: - [x] `config.action_controller.allow_forgery_protection = false` - [ ] `skip_before_action :verify_authenticity_token` - [ ] `protect_from_forgery except: :index` - [ ]...

While doing some work to implement some additional checks for #1545, I discovered that while Brakeman loads the Rails configuration as expected, if any defaults are set, these are actually...

When all is said and done, this was cookie cutter simple. You could get more creative in setting version numbers and stuff like that, but if all you want is...

Closes #1714. I added additional behavior to the existing `check_regex_dos.rb` file. I thought it seemed like the correct location because it is checking for ReDoS, though it's arguably a bit...

### Background Brakeman version: 5.2.1 Rails version: 6.0.4.1 Ruby version: 2.7.1 ### Issue We noticed that some models unscoped finds are apparently not detected by Brakeman [UnscopedFind check](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_unscoped_find.rb). Looking at...

### Background Brakeman version: 5.2.3 Rails version: 3.0.4 Ruby version: 7.0.3 Link to Rails application code: I am unable to supply due to it being in a private repo. ###...

### Background Brakeman version: 5.2.3 Rails version: 7.0.3 Ruby version: 3.1.2 Link to Rails application code: [link](https://github.com/powersurge360/trivia_app/blob/3c1f71a01123f87686a4ae2d8b5565e7239acd8e/app/controllers/games_controller.rb#L100) #### False Positive *Full* warning from Brakeman: ``` Loading scanner... Processing application in...

**Is your feature request related to a problem? Please describe.** `Pathname.join` has a weird behavioral quirk where, if a string beginning with a `/` is joined to the end of...

**Is your feature request related to a problem? Please describe.** Ruby's `#match` and `#match?` methods will coerce string inputs to regular expressions ([docs](https://ruby-doc.org/core-3.1.0/String.html#method-i-match)): > Computes regexp by converting pattern (if...

This is useful mainly to show ignore note containing reasons why they're ignored