Remote code execution in Sinatra



Published: 2023-01-24
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-45442
CWE-ID CWE-494
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Sinatra
Web applications / Remote management & hosting panels

Vendor Sinatra

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Download of code without integrity check

EUVDB-ID: #VU71475

Risk: High

CVSSv3.1: 8.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-45442

CWE-ID: CWE-494 - Download of Code Without Integrity Check

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise the affected system

The vulnerability exists due to software is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a response when the filename is derived from user-supplied input. A remote attacker cam compromise the affected system.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Sinatra: 2.0.0 - 3.0.3

External links

http://github.com/advisories/GHSA-8x94-hmjh-97hq
http://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b
http://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw
http://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf
http://lists.debian.org/debian-lts-announce/2023/01/msg00005.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###