PT-2020-12539 · Kaminari · Kaminari
Aditya Prakash
+1
·
Published
2020-05-28
·
Updated
2021-11-30
·
CVE-2020-11082
CVSS v3.1
6.4
Medium
| Vector | AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:L |
Name of the Vulnerable Software and Affected Versions
Kaminari versions prior to 1.2.1
Description
The issue allows an attacker to inject arbitrary code into pages with pagination links. This has been fixed in version 1.2.1.
Recommendations
For versions prior to 1.2.1, update to version 1.2.1 to resolve the issue.
As a temporary workaround, application developers who can't update the gem can override the
PARAM KEY EXCEPT LIST constant by adding the following code:ruby
module Kaminari::Helpers
PARAM KEY EXCEPT LIST = [:authenticity token, :commit, :utf8, : method, :script name, :original script name].freeze
endExploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Kaminari