SB2019072222 - Multiple vulnerabilities in Cherokee-project Cherokee webserver



SB2019072222 - Multiple vulnerabilities in Cherokee-project Cherokee webserver

Published: July 22, 2019 Updated: December 28, 2020

Security Bulletin ID SB2019072222
CSH Severity
High
Patch available
NO
Number of vulnerabilities 5
Exploitation vector Remote access
Highest impact Denial of service

Breakdown by Severity

High 20% Medium 80%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 5 vulnerabilities.


1) Buffer overflow (CVE-ID: CVE-2019-1010218)

CWE-ID: CWE-120 - Buffer overflow

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


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

The vulnerability exists due to a boundary error in the main cherokee command. A remote attacker can overwrite argv[0] to an insane length with execl, trigger buffer overflow and crash the application.



2) NULL pointer dereference (CVE-ID: CVE-2020-12845)

CWE-ID: CWE-476 - NULL Pointer Dereference

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


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

The vulnerability exists due to a NULL pointer dereference error in cherokee_validator_parse_basic or cherokee_validator_parse_digest. A remote attacker can send a specially crafted HTTP request and perform a denial of service (DoS) attack.


3) Out-of-bounds write (CVE-ID: CVE-2019-20800)

CWE-ID: CWE-787 - Out-of-bounds write

CVSSv4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing untrusted input within the cherokee_handler_cgi_add_env_pair() function in handler_cgi.c. A remote attacker can send a specially crafted HTTP GET request with multiple headers to the server, trigger out-of-bounds write and execute arbitrary code on the target system.


4) Buffer overflow (CVE-ID: CVE-2019-20799)

CWE-ID: CWE-119 - Memory corruption

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


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

The vulnerability exists due to a boundary error when processing HTTP requests. A remote attacker can create a specially crafted HTTP request to the server and perform a denial of service (DoS) attack.



5) Cross-site scripting (CVE-ID: CVE-2019-20798)

CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CVSSv4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]


The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists in handler_server_info.c due to insufficient sanitization of user-supplied data passed to the About page in the default configuration of the web server and its administrator panel. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.

Example:

http://[host]/about/"><script>alert(1)</script>
http://[host]:9090/about/"><script>alert(1)</script>

Remediation

Cybersecurity Help is not aware of any official remediation provided by the vendor.