RubySec

Providing security resources for the Ruby community

OSVDB-103151 (paperclip): Paperclip: Access Restriction Bypass

ADVISORIES

GEM

paperclip

PATCHED VERSIONS

  • >= 4.0.0

DESCRIPTION

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.

RELATED