Multiple vulnerabilities in Rubygem Rack



Published: 2022-07-02 | Updated: 2022-09-23
Risk High
Patch available YES
Number of vulnerabilities 3
CVE-ID CVE-2022-30123
CVE-2022-30122
CVE-2020-8184
CWE-ID CWE-78
CWE-20
CWE-353
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Rack
Web applications / Modules and components for CMS

Vendor Rack

Security Bulletin

This security bulletin contains information about 3 vulnerabilities.

1) OS Command Injection

EUVDB-ID: #VU64863

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-30123

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when handling input passed via Rack's Lint middleware and CommonLogger middleware. A remote unauthenticated attacker can pass specially crafted data to the application and execute arbitrary OS commands on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Rack: 0.1 - 2.2.3

External links

http://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2022-30123.yml
http://github.com/rack/rack/commit/b426cc224908ec6ed6eb8729325392b048215d88


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.

2) Input validation error

EUVDB-ID: #VU64862

Risk: Medium

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

CVE-ID: CVE-2022-30122

CWE-ID: CWE-20 - Improper input validation

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient validation of user-supplied input when parsing multipart POST requests. A remote attacker can send specially crafted multipart POST requests to the application and perform a denial of service (DoS) attack.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Rack: 1.2 - 2.2.3

External links

http://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2022-30122.yml
http://github.com/rack/rack/commit/d286516cbd58fbb2ad6944ce9040e9ba96d9371a


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.

3) Missing support for integrity check

EUVDB-ID: #VU67621

Risk: Low

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

CVE-ID: CVE-2020-8184

CWE-ID: CWE-353 - Missing Support for Integrity Check

Exploit availability: No

Description

The vulnerability allows a remote attacker to bypass implemented security restrictions.

The vulnerability exists due to missing integrity check of secure cookies. A remote attacker can alter the cookies in the requests and bypass implemented security restrictions.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Rack: 2.1.0 - 2.2.2

External links

http://groups.google.com/g/rubyonrails-security/c/OWtmozPH9Ak
http://hackerone.com/reports/895727
http://lists.debian.org/debian-lts-announce/2020/07/msg00006.html
http://usn.ubuntu.com/4561-1/


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###