Create wordpress-git-config.yaml

patch-1
Prince Chaddha 2021-09-21 15:21:16 +05:30 committed by GitHub
parent 26155cdd44
commit ff4811e085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
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.
reference: https://hackerone.com/reports/248693
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