Skip to content

Github Gemfiles

ID: github-gemfile-files

Severity: info

Author: hahwul

Tags: github,exposure,files

Find github page files(Gemfile / Gemfile.lock)

id: github-gemfile-files
info:
name: Github Gemfiles
author: hahwul
severity: info
description: Find github page files(Gemfile / Gemfile.lock)
metadata:
max-request: 2
tags: github,exposure,files
http:
- 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'
condition: and
# digest: 4b0a004830460221008d9031cec517f9f6be7d2136b4252b6b50a74952d70847f168f7b85bcf451247022100d5d6cc2800b5507243cecba0da71412107cc5d6dc55a8264390b1b3674156db8:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/files/github-gemfile-files.yaml"

View on Github