{"id":12413,"date":"2022-11-14T14:12:10","date_gmt":"2022-11-14T19:12:10","guid":{"rendered":"https:\/\/blog.litespeedtech.com\/?p=12413"},"modified":"2022-11-14T14:12:10","modified_gmt":"2022-11-14T19:12:10","slug":"cve-2022-0072-cve-2022-0073-and-cve-2022-0074","status":"publish","type":"post","link":"https:\/\/lswp.store\/index.php\/2022\/11\/14\/cve-2022-0072-cve-2022-0073-and-cve-2022-0074\/","title":{"rendered":"Full Disclosure of CVE-2022-0072, CVE-2022-0073, and CVE-2022-0074 and What You Should Do"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-large wp-image-12415\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2022\/11\/Security-1-1024x536.png\" alt=\"CVE-2022-0072 CVE-2022-0073 CVE-2022-0074\" width=\"1024\" height=\"536\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2022\/11\/Security-1-1024x536.png 1024w, https:\/\/lswp.store\/wp-content\/uploads\/2022\/11\/Security-1-300x157.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2022\/11\/Security-1-768x402.png 768w, https:\/\/lswp.store\/wp-content\/uploads\/2022\/11\/Security-1-600x314.png 600w, https:\/\/lswp.store\/wp-content\/uploads\/2022\/11\/Security-1.png 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Security has always been at the forefront of our development process at LiteSpeed Technologies. So when a vulnerability is discovered, we act quickly. Our priority is to empower our customers to better protect their systems, but we also take such situations as learning opportunities.<\/p>\n<p>Today, as a part of that commitment, we want to share details of certain bugs reported in OpenLiteSpeed (OLS) and LiteSpeed Enterprise (LSWS) web servers.<\/p>\n<h2 data-heading=\"Summary\">Summary<\/h2>\n<ul class=\"has-list-bullet\">\n<li data-line=\"0\">Three vulnerabilities were reported to LiteSpeed. These were fixed in OpenLiteSpeed v1.7.16 Build 1 and LiteSpeed Enterprise v6.0.12 Build 10.<\/li>\n<li data-line=\"1\">These vulnerabilities don\u2019t impact the majority of our clients. One is within the Docker system, and the other two cannot be exploited without WebAdmin access.<\/li>\n<li data-line=\"2\">You should upgrade to the latest version and build of OpenLiteSpeed or LiteSpeed Enterprise, as appropriate.<\/li>\n<li data-line=\"3\">Future security updates will be released with incremented version numbers, and will no longer be released as new builds of existing version numbers.<\/li>\n<\/ul>\n<h2 data-heading=\"About the Vulnerabilities\">About the Vulnerabilities<\/h2>\n<p>We would like to thank the Unit 42 Team at Palo Alto Networks for responsibly disclosing security issues in our OpenLiteSpeed and LiteSpeed Enterprise web servers on <strong>October 4th<\/strong>, and maintaining good communication throughout.<\/p>\n<p>LiteSpeed\u2019s Team acted swiftly and informed Unit 42 that the issues were under remediation.<\/p>\n<p>On <strong>October 8th<\/strong>, we internally remediated these bugs and put them into testing. During this period we monitored the changes and ensured they were not affecting anything else.<\/p>\n<p>On <strong>October 12th<\/strong>, we pushed the related updates to LiteSpeed Enterprise v6.0.12 as Build 10<\/p>\n<p>On <strong>October 18th<\/strong>, we pushed the related updates to OpenLiteSpeed v1.7.16 as Build 1<\/p>\n<p>On<strong> October 20th<\/strong>, our Docker Images for both OLS and LSWS were updated.<\/p>\n<p>The reported vulnerabilities have the following CVE numbers:\u00a0<a class=\"external-link\" href=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2022-0072\" target=\"_blank\" rel=\"noopener\" aria-label-position=\"top\" aria-label=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2022-0072\">CVE-2022-0072<\/a>,\u00a0<a class=\"external-link\" href=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2022-0073\" target=\"_blank\" rel=\"noopener\" aria-label-position=\"top\" aria-label=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2022-0073\">CVE-2022-0073<\/a>\u00a0and\u00a0<a class=\"external-link\" href=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2022-0074\" target=\"_blank\" rel=\"noopener\" aria-label-position=\"top\" aria-label=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2022-0074\">CVE-2022-0074<\/a>.<\/p>\n<p>Palo Alto Networks has already\u00a0<a class=\"external-link\" href=\"https:\/\/unit42.paloaltonetworks.com\/openlitespeed-vulnerabilities\/\" target=\"_blank\" rel=\"noopener\" aria-label-position=\"top\" aria-label=\"https:\/\/unit42.paloaltonetworks.com\/openlitespeed-vulnerabilities\/\">released information<\/a> about these CVEs, but we would like to expand on this, below.<\/p>\n<h3 data-heading=\"CVE-2022-0072\">CVE-2022-0072<\/h3>\n<p><strong>Directory Traversal (<a class=\"external-link\" href=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2022-0072\" target=\"_blank\" rel=\"noopener\" aria-label-position=\"top\" aria-label=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2022-0072\">CVE-2022-0072<\/a>) rated Medium severity (CVSS 5.8)<\/strong><\/p>\n<blockquote><p>[This issue] was a directory traversal vulnerability that could allow an attacker to bypass security measures and access forbidden files. An attacker that compromised the server could create a secret backdoor and exploit the vulnerability to access it.<\/p><\/blockquote>\n<p>This vulnerability applies to OpenLiteSpeed and LiteSpeed Enterprise WebAdmin Console, and is only exploitable after WebAdmin Authentication has been achieved.<\/p>\n<p data-heading=\"Additionally, you must have root privileges in order to upload a custom exploit under &#96;\/usr\/local\/lsws\/admin\/html&#96;.\">Additionally, you must have root privileges in order to upload a custom exploit under <code>\/usr\/local\/lsws\/admin\/html<\/code>.<\/p>\n<h3 data-heading=\"CVE-2022-0073\">CVE-2022-0073<\/h3>\n<p><strong>Remote Code Execution (<a class=\"external-link\" href=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2022-0073\" target=\"_blank\" rel=\"noopener\" aria-label-position=\"top\" aria-label=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2022-0073\">CVE-2022-0073<\/a>) rated High severity (CVSS 8.8)<\/strong><\/p>\n<blockquote><p>At the first stage of the attack, we tried to gain remote code execution and found that the OpenLiteSpeed Web Server admin dashboard is vulnerable to a command injection vulnerability. A threat actor who managed to gain the credentials to the dashboard, whether by brute force attacks or social engineering, could exploit the vulnerability in order to execute code on the server.<\/p><\/blockquote>\n<p>This also applies only to the OLS and LSWS WebAdmin Console for an authenticated user.<\/p>\n<h3 data-heading=\"CVE-2022-0074\">CVE-2022-0074<\/h3>\n<p><strong>Privilege Escalation (<a class=\"external-link\" href=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2022-0074\" target=\"_blank\" rel=\"noopener\" aria-label-position=\"top\" aria-label=\"https:\/\/www.cve.org\/CVERecord?id=CVE-2022-0074\">CVE-2022-0074<\/a>) rated High severity (CVSS 8.8)<\/strong><\/p>\n<blockquote><p>While exploring the OpenLiteSpeed Docker image as <code>nobody<\/code>, we found a misconfiguration in the <code>PATH<\/code> environment variable that could be exploited into a privilege escalation using the CWE untrusted search path.<\/p><\/blockquote>\n<p>This is another vulnerability that requires OpenLiteSpeed WebAdmin access in order to exploit. LiteSpeed Enterprise is not affected.<\/p>\n<p>We were unable to reproduce this scenario in our tests with a standard real-world Docker installation. It seems that the environment used by the reporting team differs from the default Docker configuration. The reporting team\u2019s\u00a0<code>\/usr\/local\/bin<\/code>\u00a0folder was owned by the\u00a0<code>nobody<\/code>\u00a0user, which allowed the vulnerability to operate.<\/p>\n<p>We tried to reproduce this bug on an Ubuntu 22 system with the default Docker host environment and the vulnerable build of our Docker image. We found that the\u00a0<code>\/usr\/local\/bin<\/code>\u00a0directory was owned by\u00a0<code>root<\/code>, and any attempt to change the files in the reported directory failed.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-12419\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2022\/11\/security_screenshot.png\" alt=\"CVE-2022-0074 Screenshot\" width=\"512\" height=\"411\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2022\/11\/security_screenshot.png 512w, https:\/\/lswp.store\/wp-content\/uploads\/2022\/11\/security_screenshot-300x241.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/p>\n<p>We don\u2019t expect this vulnerability to impact standard Docker installations, however, we are in touch with the PaloAlto Networks Team to get more details on their Docker environment. We\u2019d like to understand how it was customized to make this vulnerability possible.<\/p>\n<p>Regardless, this is not a privilege escalation from within any LiteSpeed products.<\/p>\n<h2 data-heading=\"What You Should Do\">What You Should Do<\/h2>\n<p>For Docker users, if you\u2019re able to change the contents of\u00a0<code>\/usr\/local\/bin<\/code>\u00a0in your environment, please update to our latest Docker image. An additional security layer which corrects the environment path will be added to your image, effectively patching any side-effects of this vulnerability.<\/p>\n<p>We also recommend any manual web server installations to be updated by using the\u00a0<code>$LSWS_PATH\/admin\/misc\/lsup.sh<\/code>\u00a0script. Installations installed via any RPM\/package managers(yum\/apt) will be updated automatically.<\/p>\n<p>We always recommend, for your general security, that you do not share LiteSpeed WebAdmin authentication details with more than the necessary system administrators. We also suggest you set a strong password and take advantage of the available Brute Force protection available for WebAdmin.<\/p>\n<p>For best-case scenarios, use a firewall to mask LiteSpeed WebAdmin Console from any public access.<\/p>\n<p>We would like to once again thank the Unit 42 Team, for their help in making our products secure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>About the three web server vulnerabilities CVE-2022-0072 CVE-2022-0073 and CVE-2022-0074, who is impacted, and what you should do<\/p>\n","protected":false},"author":1,"featured_media":12415,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[27,29,23],"tags":[],"class_list":["post-12413","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-server","category-openlitespeed","category-security"],"jetpack_featured_media_url":"https:\/\/lswp.store\/wp-content\/uploads\/2022\/11\/Security-1.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts\/12413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/comments?post=12413"}],"version-history":[{"count":0,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts\/12413\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/media\/12415"}],"wp:attachment":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/media?parent=12413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/categories?post=12413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/tags?post=12413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}