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.
|
2022-10-13 10:12:07 +00:00
|
|
|
tags: exposure,backup,files
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 3
|
2021-08-19 09:30:00 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-08-19 09:30:00 +00:00
|
|
|
- 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'
|