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.
Timeline
Days relative to CVE publicationFirst 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
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| 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
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 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.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | ThinkPHP - Multiple PHP Injection RCEs (Metasploit) | 16 Apr 2020 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: ThinkPHP Multiple PHP Injection RCEs (exploit/unix/webapp/thinkphp_rce) | 13 Apr 2020 | 14 Nov 2026 |
| nuclei template | nuclei template: ThinkPHP 5.0.23 - Remote Code Execution | 19 May 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 5 PoC reposPOST /index.php
- Query
s=captcha- Body markers
_method=__constructfilter[]=systemmethod=getserver[REQUEST_METHOD]=filter[]=phpinfoserver[REQUEST_METHOD]=-1inapplication/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/data
- Query
q=Helloq=' OR 1=1 --q=reportq=xss- Key headers
Authorization: Bearer {var}Authorization: Bearer not.a.jwt- Ports
- 5000, 5055, 8080
- Seen in
- 1 repo: Dyp2005/hdu-is-work1
- Evidence
- Dyp2005/hdu-is-work1/README.md:107 Dyp2005/hdu-is-work1/README.md:108 Dyp2005/hdu-is-work1/docs/curl-transcript.txt:18 Dyp2005/hdu-is-work1/docs/curl-transcript.txt:55 Dyp2005/hdu-is-work1/docs/curl-transcript.txt:90 Dyp2005/hdu-is-work1/docs/curl-transcript.txt:98
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
GET /index.php
- Query
s=/Index/\think\app/invokefunctionfunction=call_user_func_arrayvars[0]=systemvars[1][]=ids=/index/indexvars[1][]=whoami- Ports
- 8080
- Seen in
- 1 repo: Dyp2005/hdu-is-work1
- Evidence
- Dyp2005/hdu-is-work1/README.md:305 Dyp2005/hdu-is-work1/README.md:354 Dyp2005/hdu-is-work1/README.md:356 Dyp2005/hdu-is-work1/docs/thinkphp-fixed-output.txt:4 Dyp2005/hdu-is-work1/docs/thinkphp-repro-output.txt:6 Dyp2005/hdu-is-work1/docs/thinkphp-repro-output.txt:18
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"inapplication/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"inapplication/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"inapplication/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.
(?i)^/index\.php\?(?:.*&)?s=captcha
(?i)^/api/data\?(?:.*&)?q=Hello.*q=' OR 1=1 --.*q=report.*q=xss
(?i)^/api/me(?:[?#].*)?$
(?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
(?i)^/api/data(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
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;)
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;)
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;)
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;)
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.
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
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
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
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
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