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,vuln

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: 490a0046304402205a7b9869aae4ef6ab593f70cf1cc23c4079e1c00f2b9f2fe1d819e65922433e602202450d79baec5a4b35cef7062330d5cde285de39a03638312002772ca9ee0522d:922c64590222798bb761d5b6d8e72950