Description Preview
Overview
This vulnerability in Ruby on Rails' Action Controller component allows attackers to cause a denial of service condition by exploiting the token authentication mechanism. The issue stems from a too permissive regular expression used in the token authentication logic, which can be manipulated to cause excessive resource consumption. Applications that rely on token-based authentication using the affected methods are vulnerable to this attack. An attacker could potentially render the application unresponsive by sending specially crafted authentication requests, impacting availability for legitimate users.
Remediation
To address this vulnerability, update the actionpack gem to one of the following patched versions:
- Version 6.1.3.2 or later for Rails 6.1.x
- Version 6.0.3.7 or later for Rails 6.0.x
- Version 5.2.4.6 or later for Rails 5.2.x
- Version 5.2.6 or later for Rails 5.2.x
If immediate updating is not possible, consider implementing alternative authentication mechanisms temporarily or adding rate limiting and request validation before the token authentication process to mitigate potential attacks.
References
- Ruby on Rails Security Advisory: https://discuss.rubyonrails.org/t/cve-2021-22904-possible-dos-vulnerability-in-action-controller-token-authentication/77869
- HackerOne Report: https://hackerone.com/reports/1101125
- NetApp Security Advisory: https://security.netapp.com/advisory/ntap-20210805-0009/
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- Health Care & Social AssistanceHealth Care & Social Assistance
- ManufacturingManufacturing
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services
- Retail TradeRetail Trade
- Arts, Entertainment & RecreationArts, Entertainment & Recreation
- Finance and InsuranceFinance and Insurance
- Management of Companies & EnterprisesManagement of Companies & Enterprises
- Public AdministrationPublic Administration
- Transportation & WarehousingTransportation & Warehousing
- Accommodation & Food ServicesAccommodation & Food Services
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting
- ConstructionConstruction
- Educational ServicesEducational Services
- InformationInformation
- MiningMining
- Other Services (except Public Administration)Other Services (except Public Administration)
- Real Estate Rental & LeasingReal Estate Rental & Leasing
- UtilitiesUtilities
- Wholesale TradeWholesale Trade