Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rack-attack
  4. ›
  5. OSVDB-132234

OSVDB-132234: Missing normalization before request path processing

December 18, 2015

When using rack-attack with a RoR app, developers expect the request path to be normalized. In particular, trailing slashes are stripped so a request path /login/ becomes /login by the time you’re in ActionController. Since Rack::Attack runs before ActionDispatch, the request path is not yet normalized. This can cause throttles and denylists to not work as expected.

References

  • github.com/kickstarter/rack-attack/releases/tag/v4.3.1

Code Behaviors & Features

Detect and mitigate OSVDB-132234 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.3.1

Fixed versions

  • 4.3.1

Solution

Upgrade to version 4.3.1 or above.

Source file

gem/rack-attack/OSVDB-132234.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:13 +0000.