FreeBSD : rubygem-paperclip -- validation bypass vulnerability (0f154810-16e4-11e5-a1cf-002590263bf5)

medium Nessus Plugin ID 84322

Synopsis

The remote FreeBSD host is missing a security-related update.

Description

Jon Yurek reports :

Thanks to MORI Shingo of DeNA Co., Ltd. for reporting this.

There is an issue where if an HTML file is uploaded with a .html extension, but the content type is listed as being `image/jpeg`, this will bypass a validation checking for images. But it will also pass the spoof check, because a file named .html and containing actual HTML passes the spoof check.

This change makes it so that we also check the supplied content type.
So even if the file contains HTML and ends with .html, it doesn't match the content type of `image/jpeg` and so it fails.

Solution

Update the affected package.

See Also

http://www.nessus.org/u?aaf2d29b

https://robots.thoughtbot.com/paperclip-security-release

http://jvn.jp/en/jp/JVN83881261/index.html

http://www.nessus.org/u?97a2ec72

Plugin Details

Severity: Medium

ID: 84322

File Name: freebsd_pkg_0f15481016e411e5a1cf002590263bf5.nasl

Version: 2.6

Type: local

Published: 6/23/2015

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.8

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:rubygem-paperclip, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Patch Publication Date: 6/22/2015

Vulnerability Publication Date: 6/5/2015

Reference Information

CVE: CVE-2015-2963