Legacy Knowledge Base
Published Jul. 2, 2025

The potential CSRF for Liferay default logout link (/c/portal/logout)

Written By

Aaron Wang

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

NOTE: This article is an INTERNAL article and is not visible to customers, currently. Please only link this article in internal comments, but not public comments.

Issue

  • Liferay DXP instance default logout link (<Site address>/c/portal/logout) can be accessed from outside of Liferay DXP Instance, ie HTML file.

Step to reproduce

1. Log in to Liferay DXP.
2. Create an HTML file, put the following line <a href="http://localhost:8080/c/portal/logout"/>click</a> in this file
3. Open the HTML file with Chrome
4. Keep the Admin user logged in, click the link on the HTML file
5. Refresh the Liferay DXP 7.2 portal which logged in as Admin user

Result: The logged-in user (Admin user) is logged out

Environment

  • Liferay DXP 7.2

Resolution

  • According to LPS-13384, this issue was classified as an improvement as of now. 

 

Did this article resolve your issue ?

Legacy Knowledge Base