id: hadoop-unauth-rce

info:
  name: Apache Hadoop YARN ResourceManager - Remote Code Execution
  author: pdteam,Couskito
  severity: critical
  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:
    - http://archive.hack.lu/2016/Wavestone%20-%20Hack.lu%202016%20-%20Hadoop%20safari%20-%20Hunting%20for%20vulnerabilities%20-%20v1.0.pdf
    - https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/hadoop_unauth_exec.rb
    - https://github.com/vulhub/vulhub/tree/master/hadoop/unauthorized-yarn
    - https://github.com/Al1ex/Hadoop-Yarn-ResourceManager-RCE
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cwe-id: CWE-306
  metadata:
    max-request: 1
  tags: vulhub,apache,hadoop,unauth,rce,msf,misconfig

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"application-id"'

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