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: 4b0a00483046022100d29ffd95b4b6055f718bfc6caedfd93897eef5a5293e6a62e3560a426135b1be022100df6a6e84ce5722ce1ca9ccb97803701e76876304fb7f13365a4cb7ff95955e1a:922c64590222798bb761d5b6d8e72950