id: rails-debug-mode

info:
  name: Rails Debug Mode
  author: pdteam
  severity: medium
  description: Rails debug mode is enabled.
  metadata:
    max-request: 1
  tags: debug,rails,exposure,intrusive

http:
  - method: GET
    path:
      - "{{BaseURL}}/{{randstr}}"

    matchers:
      - type: word
        part: body
        words:
          - "Rails.root:"
          - "Action Controller: Exception caught"
        condition: and
# digest: 4b0a00483046022100f99970eda107395bf5c3e682a902dfa83b95aafe1fa6a6c52c29596cd547d0d8022100820ebb5ceeacc8699b28f131043b1ebcf3bb366044a241a3fbaaf5b33018b1f8:922c64590222798bb761d5b6d8e72950