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

Medium Nessus Plugin ID 84322


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


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.


Update the affected package.

See Also

Plugin Details

Severity: Medium

ID: 84322

File Name: freebsd_pkg_0f15481016e411e5a1cf002590263bf5.nasl

Version: $Revision: 2.3 $

Type: local

Published: 2015/06/23

Modified: 2017/07/06

Dependencies: 12634

Risk Information

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: 2015/06/22

Vulnerability Publication Date: 2015/06/05

Reference Information

CVE: CVE-2015-2963