id: yarn-resourcemanager-rce

info:
  name: Apache Hadoop YARN ResourceManager - Remote Code Execution
  author: pdteam
  severity: low
  description: Apache Hadoop YARN ResourceManager is susceptible to remote code execution. An attacker can execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.
  reference:
    - https://neerajsabharwal.medium.com/hadoop-yarn-hack-9a72cc1328b6
    - https://www.infosecmatter.com/nessus-plugin-library/?id=117615
  metadata:
    max-request: 1
  tags: apache,rce

http:
  - method: POST
    path:
      - '{{BaseURL}}/ws/v1/cluster/apps/new-application'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - application-id
          - maximum-resource-capability
        condition: and

      - type: status
        status:
          - 200

# digest: 4a0a00473045022032391578e51fe1078abd8d4cd54ac98c304135f714ce94c8ae74d6ee64d7fa540221008111824c09fa4cfbbaece6abecdc84788e5b7dfa74fa45b72ab2049e3939e62e:922c64590222798bb761d5b6d8e72950
