Skip to content
OpenAdvisories
Medium · 5.9 CVE-2020-15237 EUVD-2020-1413GHSA-5jjv-x4fq-qjwp

Timing attack in Shrine

Published Oct 5, 2020 · Updated Aug 4, 2024 · Assigned by GitHub_M

Description

In Shrine before version 3.3.0, when using the `derivation_endpoint` plugin, it's possible for the attacker to use a timing attack to guess the signature of the derivation URL. The problem has been fixed by comparing sent and calculated signature in constant time, using `Rack::Utils.secure_compare`. Users using the `derivation_endpoint` plugin are urged to upgrade to Shrine 3.3.0 or greater. A possible workaround is provided in the linked advisory.

Affected products

VendorProductAffectedFixed
shrinerb shrine < 3.3.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems shrine < 3.3.0 3.3.0 GHSA-5jjv-x4fq-qjwp

References