id: jolokia-createstandardhost-rce

info:
  name: Jolokia file write to RCE jfr
  author: laluka,pathtaga
  severity: critical
  description: File read and file write to RCE by deploying a vhost with MBeanFactory/createStandardHost and DiagnosticCommand/jfrStart
  reference:
    - https://github.com/laluka/jolokia-exploitation-toolkit
  classification:
    cwe-id: CWE-15,CWE-94
  tags: jolokia,rce,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/jolokia/list"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - "\"desc\":\"Create a new StandardHost\""
          - "\"desc\":\"Array of Diagnostic Commands Arguments and Options\""
        condition: and
# digest: 4a0a004730450220374c25fcb52f2315f06a5fbbb01c50df754ce9cc9a5df0684a999e31b86ecb8e02210097425887a712bfe31abf41ba02b00010a7f65cff61abf8d684df9e86c6cf98ca:922c64590222798bb761d5b6d8e72950