2021-09-21 09:51:16 +00:00
|
|
|
id: wordpress-git-config
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Wordpress Git Config
|
|
|
|
author: nerrorsec
|
|
|
|
severity: info
|
|
|
|
description: Searches for the pattern /.git/config inside themes and plugins folder.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://hackerone.com/reports/248693
|
2021-09-21 09:51:16 +00:00
|
|
|
tags: config,git,exposure,wordpress,wp-plugin,wp-theme
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/wp-content/plugins/.git/config"
|
|
|
|
- "{{BaseURL}}/wp-content/themes/.git/config"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "[core]"
|
|
|
|
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- "!contains(tolower(body), '<html')"
|
|
|
|
- "!contains(tolower(body), '<body')"
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|