Questions Tagged With tomcathttps://answers.axonivy.com/tags/tomcat/?type=rssquestions tagged <span class="tag">tomcat</span>enTue, 17 Mar 2020 10:00:35 -0400Ghostcat vulnerability in Tomcat (CVE-2020-1938)https://answers.axonivy.com/questions/4456/ghostcat-vulnerability-in-tomcat-cve-2020-1938<p><strong>IMPORTANT NOTE FROM 2020-05-12</strong> Tomcat had a bug with AJP and IIS over HTTPS. Ivy 7.0.17 and 8.0.4/8.0.5 are affected by this bug. You will need to upgrade to 7.0.18 and 8.0.6.</p> <hr> <p>The Axon.ivy Digital Business Platform is using Tomcat as web server. <a href="https://www.chaitin.cn/en/ghostcat">Ghostcat</a> 👻😼 (<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-1938">CVE-2020-1938</a>) is a security vulnerability in Tomcat and is related to the AJP protocol. AJP is a binary protocol and is used in conjunction with a reverse proxy like IIS or Apache httpd. A secure Axon.ivy Engine setup always includes a reverse proxy, like the following example:</p> <pre><code>Browser --&gt; (HTTP, HTTPS) --&gt; Reverse Proxy (IIS, Apache, ...) --&gt; (AJP) --&gt; Axon.ivy Engine </code></pre> <p>HTTP or HTTPS is also possible as communication protocol between the reverse proxy and the Axon.ivy Engine, but AJP is the most used setup, especially in Windows environments.</p> <p><strong>Are you affected by this vulnerability?</strong></p> <ul> <li><strong>8.0</strong> You are affected by this issue if you have explicitly enabled the AJP port and have not explicitly protected access to the Axon.ivy engine for example with a firewall.</li> <li><strong>7.0</strong> You are affected by this issue if you not have explicitly disabled the AJP port and have not explicitly protected access to the Axon.ivy engine for example with a firewall.</li> </ul> <p><strong>How to fix this without updating?</strong></p> <p>Is your reverse proxy running on the same host as the Axon.ivy Engine?</p> <ul> <li><strong>Yes.</strong> You need to bind the AJP port only to localhost by setting the property <code>Connector.AJP.Address</code> to <code>localhost</code> in <code>ivy.yaml</code> and restart the Axon.ivy Engine. The AJP port is now only available on the host itself. For Axon.ivy 7.0 you need to set the system property <code>WebServer.AJP.Address</code> to <code>localhost</code>.</li> <li><strong>No.</strong> Configure your network to ensure exclusive access between the reverse proxy and the Axon.ivy Engine. If this is not possible, you will need to setup a firewall on the host where the Axon.ivy Engine is running. Only requests from the reverse proxy must be allowed.</li> </ul> <p><strong>What will change in Axon.ivy 7.0.17 and 8.0.6?</strong></p> <p>Axon.ivy will come with the latest Tomcat version:</p> <ul> <li>Axon.ivy 8.0.6 comes with Tomcat 9.0.35</li> <li>Axon.ivy 7.0.18 comes with Tomcat 8.5.55</li> </ul> <p>Tomcat has changed the default behavior of the AJP port. AJP is now bound by default to localhost and not anymore to every network interface (nic). This means nobody can access the Axon.ivy Engine from another host via AJP. Furthermore the AJP port is now also disabled by default in Axon.ivy 7.0.18.</p> <p><strong>What do you have to do when upgrading to 7.0.18?</strong></p> <p>Is your reverse proxy running on the same host as the Axon.ivy Engine?</p> <ul> <li><strong>Yes.</strong> Just make sure that the system property <code>WebServer.AJP.Address</code> is empty after the upgrade. So we take the Tomcat default and the AJP port is only available locally.</li> <li><strong>No.</strong> You need to bind the AJP port to the public network address by setting the system property <code>WebServer.AJP.Address</code> to <code>YOUR_AXON_IVY_ENGINE_IP_ADDRESS</code>. Additionally, you need to configure your network to ensure exclusive access between the reverse proxy and the Axon.ivy Engine. If this is not possible, you will need to setup a firewall on the host where the Axon.ivy Engine is running. Only requests from the reverse proxy must be allowed.</li> </ul> <p>If you don't use a reverse proxy at all, then you need to disable the AJP port by setting the system property <code>WebServer.AJP.Enabled</code> to <code>false</code>.</p> <p><strong>What do you have to do when upgrading to 8.0.6?</strong></p> <p>Is your reverse proxy running on the same host as the Axon.ivy Engine?</p> <ul> <li><strong>Yes.</strong> Just make sure that <code>Connector.AJP.Address</code> in <code>ivy.yaml</code> is empty after the upgrade. So we take the Tomcat default and the AJP port is only available locally.</li> <li><strong>No.</strong> You need to bind the AJP port to the public network address by setting the property <code>Connector.AJP.Address</code> to <code>YOUR_AXON_IVY_ENGINE_IP_ADDRESS</code> in <code>ivy.yaml</code>. Additionally, you need to configure your network to ensure exclusive access between the reverse proxy and the Axon.ivy Engine. If this is not possible, you will need to setup a firewall on the host where the Axon.ivy Engine is running. Only requests from the reverse proxy must be allowed.</li> </ul> <p><strong>isapi.dll and mod_jk.so upgrades</strong></p> <p>We also bundle with the upcoming release the latest version of <code>isapi.dll</code> and <code>mod_jk.so</code>. They are needed by the reverse proxy (IIS, Apache httpd). We recommend to upgrade them on the reverse proxy as described in the <a href="https://developer.axonivy.com/doc/8.0.3/doc/migrationNotes/UpgradeApacheTomcatConnector.html">migration guide</a>.</p> <p><strong>What about <code>secret</code> and <code>secretRequired</code>?</strong></p> <p>You may have read something about secret or secretRequired. This is an alternative way to protect the communication between the reverse proxy and Axon.ivy Engine. We believe that a secure communication between the reverse proxy and the Axon.ivy Engine should be protected by firewall rules even in trusted networks and therefore this is not needed.</p> <p>If you don't have the same opinion, we would love to hear 👂 why!</p> <p>If you really want to use <code>secret</code> and <code>secretRequired</code>, you can define them in <code>ivy.yaml</code> (<a href="http://developer.axonivy.com/doc/nightly/engine-guide/configuration/files/ivy-webserver-yaml.html">see configuration</a>). Furthermore you need to define the secret itself in the <code>[worker.properties][5]</code> as part of the reverse proxy installation.</p> <p><strong>Security is important to us 💯 %</strong></p> <p>We, the platform development team, take security very seriously. If you have any questions or find other weaknesses, please do not hesitate to contact us.</p>Alex SuterTue, 17 Mar 2020 10:00:35 -0400https://answers.axonivy.com/questions/4456/ghostcat-vulnerability-in-tomcat-cve-2020-1938securitytomcatRunning with http2 and TLS1.3https://answers.axonivy.com/questions/3670/running-with-http2-and-tls1-3<p>Hi there we got the requirement to run with http2 and TLS1.3. Is it possible to solve this requirement?</p> <p>Kind regards, Sven</p>skilchenmannFri, 15 Feb 2019 05:41:45 -0500https://answers.axonivy.com/questions/3670/running-with-http2-and-tls1-3tlsssltomcatUnable to install a custom Tomcat filterhttps://answers.axonivy.com/questions/2617/unable-to-install-a-custom-tomcat-filter<p>Hello, I have tried to add a filter in web.xml in designer but it did not work. Here is my web.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee <a href="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"</a> version="3.0" metadata-complete="false"&gt; &lt;session-config&gt; &lt;session-timeout&gt;30&lt;/session-timeout&gt; &lt;/session-config&gt; &lt;filter&gt; &lt;filter-name&gt;CspFilter&lt;/filter-name&gt; &lt;filter-class&gt;ch.axonivy.fintech.acrevis.CspFilter&lt;/filter-class&gt; &lt;init-param&gt; &lt;param-name&gt;value&lt;/param-name&gt; &lt;param-value&gt;default-src 'self';report-uri <a href="http://cspreport.csnc.ch/collector.cgi</param-value>">http://cspreport.csnc.ch/collector.cgi&lt;/param-value&gt;</a> &lt;/init-param&gt; &lt;/filter&gt; &lt;filter-mapping&gt; &lt;filter-name&gt;CspFilter&lt;/filter-name&gt; &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt; &lt;/filter-mapping&gt; &lt;/web-app&gt; </code></pre> <p>I got this from error log <img alt="alt text" src="http://answers.axonivy.com/upfiles/Untitled_P35w3wj.png"></p>Bang NgoFri, 12 May 2017 00:02:30 -0400https://answers.axonivy.com/questions/2617/unable-to-install-a-custom-tomcat-filtersoaptomcatCan I enable content compression for the ivy webserverhttps://answers.axonivy.com/questions/2177/can-i-enable-content-compression-for-the-ivy-webserver<p>I'd like to enable content compression for the ivy webserver as we're sending huge files over slow networks. Currently only CSS and JavaScript contents should be compressed as GZIP. How can I configure that?</p>SupportIvyTeamThu, 10 Nov 2016 10:54:09 -0500https://answers.axonivy.com/questions/2177/can-i-enable-content-compression-for-the-ivy-webservergzipwebservertomcat