ruby.rails.security.audit.rails-check-header-dos.rails-check-header-dos

profile photo of semgrepsemgrep
Author
unknown
Download Count*

This rule is deprecated.

Run Locally

Run in CI

Defintion

rules:
  - id: rails-check-header-dos
    languages:
      - generic
    patterns:
      - pattern: a()
      - pattern: b()
    message: This rule is deprecated.
    severity: WARNING
    metadata:
      technology:
        - rails
      category: security
      cwe:
        - "CWE-20: Improper Input Validation"
      owasp:
        - A03:2021 - Injection
      source-rule-url: https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_header_dos.rb
      references:
        - https://owasp.org/Top10/A03_2021-Injection
      cwe2022-top25: true
      cwe2021-top25: true
      subcategory:
        - audit
      likelihood: LOW
      impact: HIGH
      confidence: LOW
      license: Commons Clause License Condition v1.0[LGPL-2.1-only]
      vulnerability_class:
        - Improper Validation

Examples

rails-check-header-dos.Gemfile

source 'https://rubygems.org'

gem 'rails', '5.2.4'

gem 'rails', '3.3.16'

gem 'rails', '3.2.16'

gem 'rails', '4.0.2'

gem 'rails', '4.1.0'

gem 'rails', '~> 3.2.15'

gem 'rails', '~> 3.0'

gem 'rails', '3.0.1'

gem 'rails', '3.2.15'

gem 'rails', '3.1.16'

gem 'rails', '4.0.0'

gem 'rails', '4.0.1'