Loading HuntDB...

CVE-2018-3760

UNKNOWN
Published 2018-06-26T19:00:00Z
Actions:

Expert Analysis

Professional remediation guidance

Get tailored security recommendations from our analyst team for CVE-2018-3760. We'll provide specific mitigation strategies based on your environment and risk profile.

No CVSS data available

Description

There is an information leak vulnerability in Sprockets. Versions Affected: 4.0.0.beta7 and lower, 3.7.1 and lower, 2.12.4 and lower. Specially crafted requests can be used to access files that exists on the filesystem that is outside an application's root directory, when the Sprockets server is used in production. All users running an affected release should either upgrade or use one of the work arounds immediately.

Available Exploits

Ruby On Rails - Local File Inclusion

Ruby On Rails is vulnerable to local file inclusion caused by secondary decoding in Sprockets 3.7.1 and lower versions. An attacker can use %252e%252e/ to access the root directory and read or execute any file on the target server.

ID: CVE-2018-3760
Author: 0xrudrapikpikcu High

Related News

No news articles found for this CVE.

Affected Products

GitHub Security Advisories

Community-driven vulnerability intelligence from GitHub

✓ GitHub Reviewed HIGH

Sprockets path traversal leads to information leak

GHSA-pr3h-jjhj-573x

Advisory Details

Specially crafted requests can be used to access files that exist on the filesystem that is outside an application's root directory, when the Sprockets server is used in production. All users running an affected release should either upgrade or use one of the work arounds immediately. ### Workaround: In Rails applications, work around this issue, set `config.assets.compile = false` and `config.public_file_server.enabled = true` in an initializer and precompile the assets. This work around will not be possible in all hosting environments and upgrading is advised.

Affected Packages

RubyGems sprockets
ECOSYSTEM: ≥3.0.0 <3.7.2
RubyGems sprockets
ECOSYSTEM: ≥4.0.0.beta1 <4.0.0.beta8
RubyGems sprockets
ECOSYSTEM: ≥0 <2.12.5

CVSS Scoring

CVSS Score

7.5

CVSS Vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Advisory provided by GitHub Security Advisory Database. Published: June 20, 2018, Modified: September 5, 2023

References

Published: 2018-06-26T19:00:00Z
Last Modified: 2024-09-16T18:39:20.968Z
Copied to clipboard!