Merge pull request #2721 from nerrorsec/patch-1

Added a path
patch-1
Sandeep Singh 2021-09-21 15:32:42 +05:30 committed by GitHub
commit a5982b8f32
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