{
  "id": "CVE-2018-20062",
  "url": "https://poc.griffinguard.io/cve/CVE-2018-20062",
  "published_at": "2018-12-11T18:00:00Z",
  "title": "ThinkPHP \"noneCms\" Remote Code Execution Vulnerability",
  "vendor": "ThinkPHP",
  "product": "noneCms",
  "cvss": {
    "score": 9.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2021-11-03",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 1058
  },
  "first_poc": {
    "created_at": "2020-04-13T07:21:01Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 488.6,
    "source": "metasploit",
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/thinkphp_rce.rb"
  },
  "poc_repo_count": 4,
  "exploit_count": 3,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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\u0026filter=phpinfo\u0026data=1 query string.",
  "cwe": "CWE-noinfo",
  "cvss_by_source": {
    "cisa-adp": 9.8
  },
  "repos": [
    {
      "repo": "NS-Sp4ce/thinkphp5.XRce",
      "url": "https://github.com/NS-Sp4ce/thinkphp5.XRce",
      "created_at": "2019-03-17T04:31:13Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 6,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "error",
      "owner_created_at": "2017-11-03T12:20:31Z"
    },
    {
      "repo": "0xRar/ThinkPHP5_RCE",
      "url": "https://github.com/0xRar/ThinkPHP5_RCE",
      "created_at": "2022-10-18T16:59:46Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-11-09T12:10:38Z"
    },
    {
      "repo": "yilin1203/CVE-2018-20062",
      "url": "https://github.com/yilin1203/CVE-2018-20062",
      "created_at": "2022-11-07T07:05:40Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-09-18T03:45:58Z"
    },
    {
      "repo": "shenhui35/RedArrow",
      "url": "https://github.com/shenhui35/RedArrow",
      "created_at": "2025-09-16T03:13:57Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 2,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-02-16T08:51:14Z"
    },
    {
      "repo": "KBlackMeow/Matrix",
      "url": "https://github.com/KBlackMeow/Matrix",
      "created_at": "2026-03-09T15:36:30Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "unknown",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2017-06-30T07:35:12Z"
    },
    {
      "repo": "Jasper2018/CVE-2018-20062",
      "url": "https://github.com/Jasper2018/CVE-2018-20062",
      "created_at": "2026-09-10T04:32:53Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-12-30T13:07:23Z"
    },
    {
      "repo": "Dyp2005/hdu-is-work1",
      "url": "https://github.com/Dyp2005/hdu-is-work1",
      "created_at": "2026-10-21T04:16:24Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-07-11T06:52:44Z"
    }
  ],
  "remediation": null,
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/48333",
      "source": "exploitdb",
      "title": "ThinkPHP - Multiple PHP Injection RCEs (Metasploit)",
      "published_at": "2020-04-16T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/thinkphp_rce.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: ThinkPHP Multiple PHP Injection RCEs (exploit/unix/webapp/thinkphp_rce)",
      "published_at": "2020-04-13T07:21:01Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-20062.yaml",
      "source": "nuclei",
      "title": "nuclei template: ThinkPHP 5.0.23 - Remote Code Execution",
      "published_at": "2025-05-19T12:31:37Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/index.php",
      "query_markers": [
        "s=captcha"
      ],
      "body_markers": [
        "_method=__construct",
        "filter[]=system",
        "method=get",
        "server[REQUEST_METHOD]=",
        "filter[]=phpinfo",
        "server[REQUEST_METHOD]=-1"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "protocol": "http",
      "repos": [
        "0xRar/ThinkPHP5_RCE",
        "yilin1203/CVE-2018-20062"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "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"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/data",
      "query_markers": [
        "q=Hello",
        "q=' OR 1=1 --",
        "q=report",
        "q=xss"
      ],
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {var}"
        },
        {
          "name": "Authorization",
          "value": "Bearer not.a.jwt"
        }
      ],
      "ports": [
        5000,
        5055,
        8080
      ],
      "protocol": "http",
      "repos": [
        "Dyp2005/hdu-is-work1"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "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",
        "Dyp2005/hdu-is-work1/tests/test_api.py:112",
        "Dyp2005/hdu-is-work1/tests/test_api.py:120",
        "Dyp2005/hdu-is-work1/tests/test_api.py:138",
        "Dyp2005/hdu-is-work1/tests/test_api.py:155",
        "Dyp2005/hdu-is-work1/tests/test_api.py:161",
        "Dyp2005/hdu-is-work1/tests/test_api.py:170",
        "Dyp2005/hdu-is-work1/tests/test_api.py:177",
        "Dyp2005/hdu-is-work1/tests/test_api.py:189"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/me",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {var}"
        }
      ],
      "ports": [
        5000,
        5055,
        8080
      ],
      "protocol": "http",
      "repos": [
        "Dyp2005/hdu-is-work1"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "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"
      ]
    },
    {
      "method": "GET",
      "path_template": "/index.php",
      "query_markers": [
        "s=/Index/\\think\\app/invokefunction",
        "function=call_user_func_array",
        "vars[0]=system",
        "vars[1][]=id",
        "s=/index/index",
        "vars[1][]=whoami"
      ],
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "Dyp2005/hdu-is-work1"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "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",
        "Dyp2005/hdu-is-work1/vulhub-cve-2018-20062/README.md:54",
        "Dyp2005/hdu-is-work1/vulhub-cve-2018-20062/README.md:65",
        "Dyp2005/hdu-is-work1/vulhub-cve-2018-20062/README.md:122",
        "Dyp2005/hdu-is-work1/vulhub-cve-2018-20062/README.md:124"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/data",
      "headers": [
        {
          "name": "Authorization",
          "value": "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')\u003c/script\u003e\"",
        "\"title\":\"t\"",
        "\"body\":\"b\"",
        "\"title\":\"big\"",
        "\"body\":\"A\" * 6000\""
      ],
      "content_type": "application/json",
      "ports": [
        5000,
        5055,
        8080
      ],
      "protocol": "http",
      "repos": [
        "Dyp2005/hdu-is-work1"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "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",
        "Dyp2005/hdu-is-work1/tests/test_api.py:131",
        "Dyp2005/hdu-is-work1/tests/test_api.py:203",
        "Dyp2005/hdu-is-work1/tests/test_api.py:232"
      ]
    },
    {
      "method": "POST",
      "path_template": "/auth/login",
      "body_markers": [
        "\"username\":\"alice\"",
        "\"password\":\"CorrectHorse1\"",
        "\"username\"",
        "\"password\"",
        "\"password\":\"WrongPassword9\"",
        "\"username\":\"ghost\"",
        "\"password\":\"whatever\"",
        "\"password\":\"bad-password\""
      ],
      "content_type": "application/json",
      "ports": [
        5000,
        5055,
        8080
      ],
      "protocol": "http",
      "repos": [
        "Dyp2005/hdu-is-work1"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "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",
        "Dyp2005/hdu-is-work1/tests/test_api.py:81",
        "Dyp2005/hdu-is-work1/tests/test_api.py:83",
        "Dyp2005/hdu-is-work1/tests/test_api.py:99",
        "Dyp2005/hdu-is-work1/tests/test_api.py:103",
        "Dyp2005/hdu-is-work1/tests/test_api.py:211",
        "Dyp2005/hdu-is-work1/tests/test_api.py:213"
      ]
    },
    {
      "method": "POST",
      "path_template": "/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)\u003c/script\u003e\"",
        "\"email\":\"x@example.com\"",
        "\"password\":\"GoodPassword1\""
      ],
      "content_type": "application/json",
      "ports": [
        5000,
        5055,
        8080
      ],
      "protocol": "http",
      "repos": [
        "Dyp2005/hdu-is-work1"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "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",
        "Dyp2005/hdu-is-work1/tests/test_api.py:47",
        "Dyp2005/hdu-is-work1/tests/test_api.py:55",
        "Dyp2005/hdu-is-work1/tests/test_api.py:143"
      ]
    }
  ],
  "rules": []
}
