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

VectorAV: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
end

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2020-11082
DLA-2763-1
DSA-5005-1
GHSA-R5JW-62XG-J433

Affected Products

Kaminari