CVE-2017-14683: Gem in a Box vulnerable to Cross-site Request Forgery
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.32079%
CWE
Published
5/13/2022
Updated
3/14/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
geminabox | rubygems | < 0.13.7 | 0.13.7 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing CSRF protection middleware rather than specific vulnerable functions. The patch added Rack::Protection
and session management (Rack::Session::Pool
) at the application level in lib/geminabox/server.rb
. The vulnerability existed because the application didn't implement CSRF tokens or protection mechanisms for state-changing operations like gem uploads. While the gem upload handler (likely in the Server
class) was the attack vector, the root cause was the absence of CSRF protection across all routes, not a flaw in specific function implementations. The fix addressed this through middleware configuration rather than modifying individual functions.