2021-08-19 09:33:10 +00:00
|
|
|
id: db-schema
|
2021-08-19 09:30:00 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: Discover db schema files
|
|
|
|
author: geeknik
|
|
|
|
severity: info
|
2021-08-19 09:33:10 +00:00
|
|
|
description: This file is auto-generated from the current state of the database.
|
2021-08-20 11:07:22 +00:00
|
|
|
tags: exposure,backup
|
2021-08-19 09:30:00 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/db/schema.rb"
|
|
|
|
- "{{BaseURL}}/database/schema.rb"
|
|
|
|
- "{{BaseURL}}/schema.rb"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
2021-08-19 09:33:10 +00:00
|
|
|
|
2021-08-19 09:30:00 +00:00
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "This file is auto-generated from the current state of the database."
|
|
|
|
- "ActiveRecord::Schema.define"
|
|
|
|
condition: and
|
2021-08-19 09:33:10 +00:00
|
|
|
|
2021-08-19 09:30:00 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2021-08-19 09:33:10 +00:00
|
|
|
|
2021-08-19 09:30:00 +00:00
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
name: version
|
|
|
|
part: body
|
|
|
|
regex:
|
2021-08-19 09:33:10 +00:00
|
|
|
- 'eRecord::Schema\.define\(version: ([0-9_]+)\) do'
|