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

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