id: exposed-nomad

info:
  name: Nomad - Exposed Jobs
  author: pdteam
  severity: medium
  description: Nomad jobs were discovered.
  reference:
    - https://www.nomadproject.io/docs/internals/security
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: nomad,devops,hashicorp,panel,misconfig,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/ui/jobs"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Nomad"
          - "nomad-ui"
        condition: and

      - type: word
        words:
          - "text/html"
        part: header

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