2021-07-30 12:31:05 +00:00
|
|
|
id: github-gemfile-files
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Github Gemfiles
|
|
|
|
author: hahwul
|
|
|
|
severity: info
|
|
|
|
description: Find github page files(Gemfile / Gemfile.lock)
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 2
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: github,exposure,files
|
2021-07-30 12:31:05 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-07-30 12:31:05 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/Gemfile"
|
|
|
|
- "{{BaseURL}}/Gemfile.lock"
|
|
|
|
|
|
|
|
matchers-condition: or
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'contains(body, "https://rubygems.org")'
|
|
|
|
- 'contains(body, "source")'
|
|
|
|
- 'contains(body, "gem")'
|
|
|
|
- 'status_code == 200'
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'contains(body, "https://rubygems.org")'
|
|
|
|
- 'contains(body, "remote")'
|
|
|
|
- 'contains(body, "specs")'
|
|
|
|
- 'status_code == 200'
|
2023-10-14 11:27:55 +00:00
|
|
|
condition: and
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4b0a00483046022100a916c3374acc25721c8aa457f743ecf1a4af8fa5608e26afa24194537e211abf022100b20ceb5335ccffb53f2598ee45bdc2895f14b4cb4feea8978ea7a0774fd56be0:922c64590222798bb761d5b6d8e72950
|