PoC Monitor
← All CVEs
CVE-2018-20062published 11 Dec 2018 18:00 UTCData: JSON · API

ThinkPHP noneCms

ThinkPHP "noneCms" Remote Code Execution Vulnerability

An issue was discovered in NoneCms V1.3. thinkphp/library/think/App.php allows remote attackers to execute arbitrary PHP code via crafted use of the filter parameter, as demonstrated by the s=index/\think\Request/input&filter=phpinfo&data=1 query string.

First public PoC 1.3 yearsafter publication · 13 Apr 2020 · Metasploit
Public PoCs74 on GitHub · 3 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-noinfo
CISA KEV 3 Nov 20212.9 years after publication

Timeline

Days relative to CVE publication
t=0+180+360+540+720+900CVE published11 Dec 2018 · t = 0First public PoC13 Apr 2020 · t+1.3yAdded to CISA KEV3 Nov 2021 · t+2.9y

First public PoC 1.3 years after publication; added to CISA KEV 2.9 years after publication. First PoC: Metasploit exploit: ThinkPHP Multiple PHP Injection RCEs (exploit/unix/webapp/thinkphp_rce) (Metasploit, 13 Apr 2020).

PoC repositories

Found on GitHub.

4 PoCs · 3 pending

PoCs 4
RepositoryCreatedFound by usStarsAssessment
0xRar/ThinkPHP5_RCE 18 Oct 2022 +3.9 y backfilled 0 PoC
yilin1203/CVE-2018-20062 7 Nov 2022 +3.9 y backfilled 2 PoC
Jasper2018/CVE-2018-20062 10 Sep 2026 +7.7 y backfilled 0 PoC via PoC Index
Dyp2005/hdu-is-work1 21 Oct 2026 +7.9 y 14 Nov 2026 0 PoC
Pending 3
RepositoryCreatedStarsAssessment
NS-Sp4ce/thinkphp5.XRce 17 Mar 2019 +95 d 6 Pending · mkdir /quarantine/NS-Sp4ce__thinkphp5.XRce-7d8c6445dce4: permission denied
shenhui35/RedArrow 16 Sep 2025 +6.8 y 2 Pending
KBlackMeow/Matrix 9 Mar 2026 +7.2 y 2 Pending · repository exceeds size limit via PoC Index

Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. 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.
SourceTitlePublishedFound by us
Exploit-DBThinkPHP - Multiple PHP Injection RCEs (Metasploit)16 Apr 202014 Nov 2026
MetasploitMetasploit exploit: ThinkPHP Multiple PHP Injection RCEs (exploit/unix/webapp/thinkphp_rce)13 Apr 202014 Nov 2026
nuclei templatenuclei template: ThinkPHP 5.0.23 - Remote Code Execution19 May 202514 Nov 2026

PoC characteristics

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

POST /index.php

Query
s=captcha
Body markers
_method=__construct filter[]=system method=get server[REQUEST_METHOD]= filter[]=phpinfo server[REQUEST_METHOD]=-1 in application/x-www-form-urlencoded
Seen in
2 repos: 0xRar/ThinkPHP5_RCE, yilin1203/CVE-2018-20062
Evidence
0xRar/ThinkPHP5_RCE/ThinkPHP5_RCE.py:38 yilin1203/CVE-2018-20062/CVE-2018-20062.py:20 yilin1203/CVE-2018-20062/CVE-2018-20062.py:30 yilin1203/CVE-2018-20062/CVE-2018-20062.py:43

GET /api/me

Key headers
Authorization: Bearer {var}
Ports
5000, 5055, 8080
Seen in
1 repo: Dyp2005/hdu-is-work1
Evidence
Dyp2005/hdu-is-work1/README.md:115 Dyp2005/hdu-is-work1/docs/curl-transcript.txt:71 Dyp2005/hdu-is-work1/tests/test_api.py:195

POST /api/data

Key headers
Authorization: Bearer {var}
Body markers
"title":"Hello" "body":"first post" "title":"XSS demo" "body" "title":"public post" "body":"hello" "title":"quarterly report" "body":"x" "title":"xss demo" "body":"{var}alert('xss')</script>" "title":"t" "body":"b" "title":"big" "body":"A" * 6000" in application/json
Ports
5000, 5055, 8080
Seen in
1 repo: Dyp2005/hdu-is-work1
Evidence
Dyp2005/hdu-is-work1/README.md:122 Dyp2005/hdu-is-work1/README.md:195 Dyp2005/hdu-is-work1/docs/curl-transcript.txt:35 Dyp2005/hdu-is-work1/docs/curl-transcript.txt:45 Dyp2005/hdu-is-work1/tests/test_api.py:110 Dyp2005/hdu-is-work1/tests/test_api.py:118

POST /auth/login

Body markers
"username":"alice" "password":"CorrectHorse1" "username" "password" "password":"WrongPassword9" "username":"ghost" "password":"whatever" "password":"bad-password" in application/json
Ports
5000, 5055, 8080
Seen in
1 repo: Dyp2005/hdu-is-work1
Evidence
Dyp2005/hdu-is-work1/README.md:96 Dyp2005/hdu-is-work1/docs/curl-transcript.txt:26 Dyp2005/hdu-is-work1/docs/curl-transcript.txt:82 Dyp2005/hdu-is-work1/tests/conftest.py:64 Dyp2005/hdu-is-work1/tests/test_api.py:61 Dyp2005/hdu-is-work1/tests/test_api.py:73

POST /auth/register

Body markers
"username":"alice" "email":"alice@example.com" "password":"CorrectHorse1" "username":"carol" "email":"carol@example.com" "password":"short" not-json "username":"{var}alert(1)</script>" "email":"x@example.com" "password":"GoodPassword1" in application/json
Ports
5000, 5055, 8080
Seen in
1 repo: Dyp2005/hdu-is-work1
Evidence
Dyp2005/hdu-is-work1/README.md:87 Dyp2005/hdu-is-work1/docs/curl-transcript.txt:10 Dyp2005/hdu-is-work1/tests/conftest.py:57 Dyp2005/hdu-is-work1/tests/test_api.py:20 Dyp2005/hdu-is-work1/tests/test_api.py:29 Dyp2005/hdu-is-work1/tests/test_api.py:42

Regex

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

POST /index.php
(?i)^/index\.php\?(?:.*&)?s=captcha
GET /api/data
(?i)^/api/data\?(?:.*&)?q=Hello.*q=' OR 1=1 --.*q=report.*q=xss
GET /api/me
(?i)^/api/me(?:[?#].*)?$
GET /index.php
(?i)^/index\.php\?(?:.*&)?s=/Index/\\think\\app/invokefunction.*function=call_user_func_array.*vars\[0\]=system.*vars\[1\]\[\]=id.*s=/index/index.*vars\[1\]\[\]=whoami
POST /api/data
(?i)^/api/data(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /index.php
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2018-20062 ThinkPHP noneCms exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/index.php"; http.uri; content:"s=captcha"; http.request_body; content:"_method=__construct"; http.request_body; content:"filter[]=system"; http.request_body; content:"method=get"; http.request_body; content:"server[REQUEST_METHOD]="; http.request_body; content:"filter[]=phpinfo"; http.request_body; content:"server[REQUEST_METHOD]=-1"; reference:url,poc.griffinguard.io/cve/CVE-2018-20062; classtype:web-application-attack; sid:9495541; rev:1;)
GET /api/data
alert http any any -> $HOME_NET [5000,5055,8080] (msg:"GG PoC-Monitor CVE-2018-20062 ThinkPHP noneCms exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/data"; http.uri; content:"q=Hello"; http.uri; content:"q=' OR 1=1 --"; http.uri; content:"q=report"; http.uri; content:"q=xss"; http.header; content:"Authorization: Bearer "; nocase; http.header; content:"Authorization: Bearer not.a.jwt"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2018-20062; classtype:web-application-attack; sid:9695370; rev:1;)
GET /api/me
alert http any any -> $HOME_NET [5000,5055,8080] (msg:"GG PoC-Monitor CVE-2018-20062 ThinkPHP noneCms exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/me"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2018-20062; classtype:web-application-attack; sid:9256976; rev:1;)
GET /index.php
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2018-20062 ThinkPHP noneCms exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/index.php"; http.uri; content:"s=/Index/|5c|think|5c|app/invokefunction"; http.uri; content:"function=call_user_func_array"; http.uri; content:"vars[0]=system"; http.uri; content:"vars[1][]=id"; http.uri; content:"s=/index/index"; http.uri; content:"vars[1][]=whoami"; reference:url,poc.griffinguard.io/cve/CVE-2018-20062; classtype:web-application-attack; sid:9530239; rev:1;)
POST /api/data
alert http any any -> $HOME_NET [5000,5055,8080] (msg:"GG PoC-Monitor CVE-2018-20062 ThinkPHP noneCms exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/data"; http.header; content:"Authorization: Bearer "; nocase; http.request_body; content:"|22|title|22|:|22|Hello|22|"; http.request_body; content:"|22|body|22|:|22|first post|22|"; http.request_body; content:"|22|title|22|:|22|XSS demo|22|"; http.request_body; content:"|22|body|22|"; http.request_body; content:"|22|title|22|:|22|public post|22|"; http.request_body; content:"|22|body|22|:|22|hello|22|"; http.request_body; content:"|22|title|22|:|22|quarterly report|22|"; http.request_body; content:"|22|body|22|:|22|x|22|"; http.request_body; content:"|22|title|22|:|22|xss demo|22|"; http.request_body; content:"|22|body|22|:|22|"; http.request_body; content:"|22|title|22|:|22|t|22|"; http.request_body; content:"|22|body|22|:|22|b|22|"; http.request_body; content:"|22|title|22|:|22|big|22|"; http.request_body; content:"|22|body|22|:|22|A|22| * 6000|22|"; reference:url,poc.griffinguard.io/cve/CVE-2018-20062; classtype:web-application-attack; sid:9632936; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

POST /index.php
title: ThinkPHP noneCms exploit attempt (CVE-2018-20062)
id: gg-pocmon-cve-2018-20062-9495541
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-20062. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2018-20062
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/index.php'
    cs-uri-query|contains|all:
      - 's=captcha'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2018.20062
GET /api/data
title: ThinkPHP noneCms exploit attempt (CVE-2018-20062)
id: gg-pocmon-cve-2018-20062-9695370
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-20062. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2018-20062
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/api/data'
    cs-uri-query|contains|all:
      - 'q=Hello'
      - 'q='' OR 1=1 --'
      - 'q=report'
      - 'q=xss'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2018.20062
GET /api/me
title: ThinkPHP noneCms exploit attempt (CVE-2018-20062)
id: gg-pocmon-cve-2018-20062-9256976
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-20062. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2018-20062
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/api/me'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2018.20062
GET /index.php
title: ThinkPHP noneCms exploit attempt (CVE-2018-20062)
id: gg-pocmon-cve-2018-20062-9530239
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-20062. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2018-20062
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/index.php'
    cs-uri-query|contains|all:
      - 's=/Index/\think\app/invokefunction'
      - 'function=call_user_func_array'
      - 'vars[0]=system'
      - 'vars[1][]=id'
      - 's=/index/index'
      - 'vars[1][]=whoami'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2018.20062
POST /api/data
title: ThinkPHP noneCms exploit attempt (CVE-2018-20062)
id: gg-pocmon-cve-2018-20062-9632936
status: experimental
description: Request pattern taken from public PoCs for CVE-2018-20062. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2018-20062
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/api/data'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2018.20062