CVE-2021-39197
Summary
| CVE | CVE-2021-39197 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-09-07 18:15:00 UTC |
| Updated | 2021-09-14 18:34:00 UTC |
| Description | better_errors is an open source replacement for the standard Rails error page with more information rich error pages. It is also usable outside of Rails in any Rack app as Rack middleware. better_errors prior to 2.8.0 did not implement CSRF protection for its internal requests. It also did not enforce the correct "Content-Type" header for these requests, which allowed a cross-origin "simple request" to be made without CORS protection. These together left an application with better_errors enabled open to cross-origin attacks. As a developer tool, better_errors documentation strongly recommends addition only to the `development` bundle group, so this vulnerability should only affect development environments. Please ensure that your project limits better_errors to the `development` group (or the non-Rails equivalent). Starting with release 2.8.x, CSRF protection is enforced. It is recommended that you upgrade to the latest release, or minimally to "~> 2.8.3". There are no known workarounds to mitigate the risk of using older releases of better_errors. |
Risk And Classification
Problem Types: CWE-352
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Better Errors Project | Better Errors | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Cross-Site Request Forgery vulnerability · Discussion #507 · BetterErrors/better_errors · GitHub | MISC | github.com | |
| Merge pull request #474 from BetterErrors/feature/add-csrf-to-requests · BetterErrors/better_errors@8e8e796 · GitHub | MISC | github.com | |
| Vulnerable to Cross-Site Request Forgery in development · Advisory · BetterErrors/better_errors · GitHub | CONFIRM | github.com | |
| Add CSRF protection to internal requests by RobinDaugherty · Pull Request #474 · BetterErrors/better_errors · GitHub | MISC | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.