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
|
2022-08-27 04:41:18 +00:00
|
|
|
tags: hackerone,config,git,exposure,wordpress,wp-plugin,wp-theme
|
2021-09-21 09:51:16 +00:00
|
|
|
|
|
|
|
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
|