Access Restriction Bypass Affecting paperclip package, versions < 4.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUBY-PAPERCLIP-20144
  • published 30 Jan 2014
  • disclosed 30 Jan 2014
  • credit Unknown

Introduced: 30 Jan 2014

CVE NOT AVAILABLE CWE-284 Open this link in a new tab

Overview

paperclip is an upload management for ActiveRecord. Affected versions of this gem are vulnerable to Restriction Bypass By Spoofing Content-Type Header.

Details

Paperclip Gem for Ruby contains a flaw that is due to the application failing to properly validate the file extension, instead only validating the Content-Type header during file uploads. This may allow a remote attacker to bypass restrictions on file types for uploaded files by spoofing the content-type.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    Low
  • Availability (A)
    None