header-logo
Suggest Exploit
vendor:
Liferay Portal
by:
Berk Dusunur
9.8
CVSS
HIGH
Remote Command Execution
78
CWE
Product Name: Liferay Portal
Affected Version From: 6.0.2
Affected Version To: 6.0.2
Patch Exists: YES
Related CWE: N/A
CPE: a:liferay:liferay_portal:6.0.2
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: MacOS
2020

Liferay CE Portal 6.0.2 – Remote Command Execution

A vulnerability in Liferay CE Portal 6.0.2 allows an attacker to execute arbitrary commands on the target system. The vulnerability exists due to improper validation of user-supplied input in the application. An attacker can exploit this vulnerability by sending a specially crafted payload to the application. This will allow the attacker to execute arbitrary commands on the target system.

Mitigation:

The vendor has released a patch to address this vulnerability. Users should update their systems to the latest version of the software.
Source

Exploit-DB raw data:

# Exploit Title: Liferay CE Portal 6.0.2 - Remote Command Execution
# Google Dork: N/A
# Date: 2020-01-29
# Exploit Author: Berk Dusunur
# Vendor Homepage: https://www.liferay.com/
# Software Link: https://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.0.2/
# https://github.com/chakadev/Liferay-CE-Portal-Java-Deserialization
# Version: 6.0.2
# Tested on: MacOS
# CVE : N/A

#PoC

I already shared payloads in my github repo (Because payloads so small and
have a meta character). You must find the right syntax by brute-force
method.Payloads I share are for time-based proof of concept (sleep 10). The
application may not always output the command. That's why you should try
time-based payload while doing PoC.



POST /api/liferay HTTP/1.1
Host: TARGET
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: close

PAYLOADS HERE