Persistent cross-site scripting vulnerabilities in Liferay Portal
Several fields in Liferay Portal (commerce addresses, country regions, wiki child pages and vocabulary descriptions) were rendered without output encoding, so stored HTML and JavaScript ran in the browser of anyone who later viewed the affected page. The most serious one let any shop customer plant script that executed in a shop administrator's session, potentially giving the attacker control of the installation.
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.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An unauthenticated shop customer could run script in a shop administrator's session and potentially control the whole installation; the other three issues required administrative permissions to plant the payload and were rated informational or low.
What the attacker needed
Liferay Portal with commerce enabled; attacker can place an order; admin opens the order details
The fix
The issues were fixed by Liferay in later releases, with the vocabulary issue fixed in version 7.4.3.88 and advisories published for the others.
How it was found
- As a shop customer, submit an order with script content in the shipping or billing address fields.
- The order is saved with the injected values.
- A shop administrator opens the order details in the administrative interface.
- The stored script runs in the administrator's browser.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A website normally treats text you type as plain text. Here some fields were put back into the page as if they were part of the page's code, so typed-in script ran in the browser of whoever opened that page later. Because the script runs inside the site, it can do anything that logged-in person could do.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.