PoC Monitor
← All CVEs
CVE-2020-7961published 20 Mar 2020 18:16 UTCData: JSON · API

Liferay Portal

Liferay Portal Deserialization of Untrusted Data Vulnerability

Deserialization of Untrusted Data in Liferay Portal prior to 7.2.1 CE GA2 allows remote attackers to execute arbitrary code via JSON web services (JSONWS).

First public PoC 5.3 daysafter publication · 26 Mar 2020
Public PoCs107 on GitHub · 3 Exploit-DB, Metasploit or nuclei · +1 suspicious, not counted
CVSS9.8critical · scored by CISA ADP · CWE-502
CISA KEV 3 Nov 20211.6 years after publication

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

com.liferay.portal:com.liferay.portal.kernel (Maven)
  • < 4.35.3

Fixed in 4.35.3

from GitHub Security Advisory GHSA-w7pm-cc4v-f3g8

Mitigation

Upgrade com.liferay.portal:com.liferay.portal.kernel to 4.35.3 or later.

Timeline

Days relative to CVE publication
t=0+90+180+270+360+450+540CVE published20 Mar 2020 · t = 0First public PoC26 Mar 2020 · t+5.3dAdded to CISA KEV3 Nov 2021 · t+1.6y

First public PoC 5.3 days after publication; added to CISA KEV 1.6 years after publication. First PoC: mzer0one/CVE-2020-7961-POC (created 26 Mar 2020, found by us: backfilled).

PoC repositories

Found on GitHub.

7 PoCs · 4 pending · 3 informational · 3 suspicious or fake

PoCs 7
RepositoryCreatedStarsAssessment
mzer0one/CVE-2020-7961-POC 26 Mar 2020 +5.3 d 117 PoC
thelostworldFree/CVE-2020-7961-payloads 23 May 2020 +64 d 5 PoC
ShutdownRepo/CVE-2020-7961 14 Jan 2021 +300 d 18 PoC
CrackerCat/CVE-2020-7961-Mass 9 Apr 2021 +1.1 y 2 PoC
mathiznogoud/Liferay-RCE 9 Apr 2021 +1.1 y 5 PoC
Alaa-abdulridha/POC-CVE-2020-7961-Token-iterate 26 May 2021 +1.2 y 0 PoC
neverhavenamee/CVE-2020-7961 4 Sep 2025 +5.5 y 0 PoC via PoC Index
Pending 4
RepositoryCreatedStarsAssessment
Udyz/CVE-2020-7961-Mass unknown 0 Pending · repository unavailable (HTTP 404)
shacojx/GLiferay-CVE-2020-7961-golang unknown 0 Pending · repository unavailable (HTTP 404)
shacojx/LifeRCEJsonWSTool-POC-CVE-2020-7961-Gui unknown 0 Pending · repository unavailable (HTTP 404)
shacojx/POC-CVE-2020-7961-Token-iterate unknown 0 Pending · repository unavailable (HTTP 404)
Informational 3
RepositoryCreatedStarsAssessment
Alaa-abdulridha/GLiferay-CVE-2020-7961-golang 27 May 2021 +1.2 y 0 Informational · detection
pashayogi/CVE-2020-7961-Mass 22 May 2022 +2.2 y 0 Informational · write-up
manrop2702/CVE-2020-7961 14 Mar 2024 +4.0 y 0 Informational · write-up
Suspicious or fake 3
RepositoryCreatedStarsAssessment
papa-anniekey/CustomSignatures 18 Jan 2018 −2.2 y 1 Fake
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

mathiznogoud/Liferay-Deserialize-POC 27 Mar 2020 +6.8 d 0 Fake
dinosn/liferay-ga4-rce-research 28 Jul 2026 +6.4 y 7 Suspicious · score 65
Why suspicious
  • README asks to download a release/binary/archive
  • README gives an archive password

Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.

PoC characteristics

What to hunt for in your logs · from 7 PoC repos

POST /api/jsonws/invoke

Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept: application/json, text/javascript, */* Accept-Language: en-Us,en;q=0.5 Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2 Cache-Control: no-cache Cmd2: lollulzkid Cmd2: {var} Cmd2: whoami Cmd2: pwd & echo "Hacked... Fuck fuck" Dnt: 1 Pragma: no-cache Upgrade-Insecure-Requests: 1 X-Requested-With: XMLHttpRequest
Body markers
formDate=1585475176055 p_auth= addressId=12 addressId=1 cmd={"/expandocolumn/update-column": columnId=123 name=asdasd type=1 defaultData:com.mchange.v2.c3p0.WrapperConnectionPoolDataSource= p_auth=AdsXeCqz tableId%3d1= formDate=1526638413000 name=A p_auth=jI2WsgGr formDate=1584716289678 defaultData:{var}= cmd={"/expandocolumn/add-column": tableId=1 name=2 type=3 p_auth=2piAnQdm formDate=1756967152372 in application/x-www-form-urlencoded
Ports
8080, 8082
PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0 Mozilla/5.0 (Window NT 10.0; Win64; x64
Seen in
3 repos: Alaa-abdulridha/POC-CVE-2020-7961-Token-iterate, CrackerCat/CVE-2020-7961-Mass, neverhavenamee/CVE-2020-7961
Evidence
Alaa-abdulridha/POC-CVE-2020-7961-Token-iterate/poc.py:39 CrackerCat/CVE-2020-7961-Mass/rce.py:23 CrackerCat/CVE-2020-7961-Mass/rce.py:32 CrackerCat/CVE-2020-7961-Mass/rce.py:43 CrackerCat/CVE-2020-7961-Mass/shell.py:23 CrackerCat/CVE-2020-7961-Mass/shell.py:27

GET /api/jsonws/invoke

Key headers
Accept: */*
PoC User-Agent
curl/7.64.1
Seen in
1 repo: CrackerCat/CVE-2020-7961-Mass
Evidence
CrackerCat/CVE-2020-7961-Mass/rce.py:19 CrackerCat/CVE-2020-7961-Mass/shell.py:18

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

POST /api/jsonws/invoke
(?i)^/api/jsonws/invoke(?:[?#].*)?$
GET /api/jsonws/invoke
(?i)^/api/jsonws/invoke(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /api/jsonws/invoke
alert http any any -> $HOME_NET [8080,8082] (msg:"GG PoC-Monitor CVE-2020-7961 Liferay Liferay Portal exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/jsonws/invoke"; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,image/webp,*/*|3b|q=0.8"; nocase; http.header; content:"Accept: application/json, text/javascript, */*"; nocase; http.header; content:"Accept-Language: en-Us,en|3b|q=0.5"; nocase; http.header; content:"Accept-Language: zh-CN,zh|3b|q=0.8,zh-TW|3b|q=0.7,zh-HK|3b|q=0.5,en-US|3b|q=0.3,en|3b|q=0.2"; nocase; http.header; content:"Cache-Control: no-cache"; nocase; http.header; content:"Cmd2: lollulzkid"; nocase; http.header_names; content:"Cmd2"; nocase; http.header; content:"Cmd2: whoami"; nocase; http.header; content:"Cmd2: pwd & echo |22|Hacked... Fuck fuck|22|"; nocase; http.header; content:"Dnt: 1"; nocase; http.header; content:"Pragma: no-cache"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; http.request_body; content:"formDate=1585475176055"; http.request_body; content:"p_auth="; http.request_body; content:"addressId=12"; http.request_body; content:"addressId=1"; http.request_body; content:"cmd={|22|/expandocolumn/update-column|22|:"; http.request_body; content:"columnId=123"; http.request_body; content:"name=asdasd"; http.request_body; content:"type=1"; http.request_body; content:"defaultData:com.mchange.v2.c3p0.WrapperConnectionPoolDataSource="; http.request_body; content:"p_auth=AdsXeCqz"; http.request_body; content:"tableId%3d1="; http.request_body; content:"formDate=1526638413000"; http.request_body; content:"name=A"; http.request_body; content:"p_auth=jI2WsgGr"; http.request_body; content:"formDate=1584716289678"; http.request_body; content:"defaultData:"; http.request_body; content:"cmd={|22|/expandocolumn/add-column|22|:"; http.request_body; content:"tableId=1"; http.request_body; content:"name=2"; http.request_body; content:"type=3"; http.request_body; content:"p_auth=2piAnQdm"; http.request_body; content:"formDate=1756967152372"; reference:url,poc.griffinguard.io/cve/CVE-2020-7961; classtype:web-application-attack; sid:9167691; rev:1;)
GET /api/jsonws/invoke
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-7961 Liferay Liferay Portal exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/jsonws/invoke"; http.header; content:"Accept: */*"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2020-7961; classtype:web-application-attack; sid:9403861; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

POST /api/jsonws/invoke
title: Liferay Liferay Portal exploit attempt (CVE-2020-7961)
id: gg-pocmon-cve-2020-7961-9167691
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-7961. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-7961
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/api/jsonws/invoke'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.7961
GET /api/jsonws/invoke
title: Liferay Liferay Portal exploit attempt (CVE-2020-7961)
id: gg-pocmon-cve-2020-7961-9403861
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-7961. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-7961
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/api/jsonws/invoke'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.7961