id: jolokia-logback-jndi-rce

info:
  name: Jolokia Logback JNDI - Remote Code Execution
  author: SleepingBag945
  severity: high
  description: Jolokia Logback is vulnerable to RCE.
  reference:
    - https://thinkloveshare.com/hacking/ssrf_to_rce_with_jolokia_and_mbeans/
    - https://github.com/laluka/jolokia-exploitation-toolkit
    - https://github.com/LandGrey/SpringBootVulExploit#0x04jolokia-logback-jndi-rce
  metadata:
    max-request: 2
  tags: jolokia,springboot,tomcat,rce

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'ch.qos.logback.classic.jmx.JMXConfigurator'
          - 'reloadByURL'
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a0048304602210080d11ce720afc04cf2ba81fbd0b7de9eff17bc7cdf0c8b2cd9b0d2f937d8958e022100a144c67603de32d862452e734af95925719b87b6a02ff44c276827be141e5488:922c64590222798bb761d5b6d8e72950