nuclei-templates/exposures/files/db-schema.yaml

41 lines
855 B
YAML

id: db-schema
info:
name: Discover db schema files
author: geeknik
severity: info
description: This file is auto-generated from the current state of the database.
requests:
- method: GET
path:
- "{{BaseURL}}/db/schema.rb"
- "{{BaseURL}}/database/schema.rb"
- "{{BaseURL}}/schema.rb"
matchers-condition: and
matchers:
- type: word
words:
- "This file is auto-generated from the current state of the database."
- "ActiveRecord::Schema.define"
condition: and
- type: word
part: header
words:
- "text/html"
negative: true
- type: status
status:
- 200
extractors:
- type: regex
name: version
part: body
regex:
- 'eRecord::Schema\.define\(version: ([0-9_]+)\) do'