46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
id: wordpress-accessible-wpconfig
|
|
info:
|
|
name: WordPress accessible wp-config
|
|
author: Kiblyn11,zomsop82,madrobot,geeknik,daffainfo,r12w4n
|
|
severity: high
|
|
description: The remote WordPress installation has the `wp-config` file remotely accessible and its content available for reading.
|
|
tags: wordpress,backup
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- '{{BaseURL}}/wp-config.php'
|
|
- '{{BaseURL}}/.wp-config.php.swp'
|
|
- '{{BaseURL}}/wp-config-sample.php'
|
|
- '{{BaseURL}}/wp-config.inc'
|
|
- '{{BaseURL}}/wp-config.old'
|
|
- '{{BaseURL}}/wp-config.txt'
|
|
- '{{BaseURL}}/wp-config.php.txt'
|
|
- '{{BaseURL}}/wp-config.php.bak'
|
|
- '{{BaseURL}}/wp-config.php.old'
|
|
- '{{BaseURL}}/wp-config.php.dist'
|
|
- '{{BaseURL}}/wp-config.php.inc'
|
|
- '{{BaseURL}}/wp-config.php.swp'
|
|
- '{{BaseURL}}/wp-config.php.html'
|
|
- '{{BaseURL}}/wp-config-backup.txt'
|
|
- '{{BaseURL}}/wp-config.php.save'
|
|
- '{{BaseURL}}/wp-config.php~'
|
|
- '{{BaseURL}}/wp-config.php-backup'
|
|
- '{{BaseURL}}/wp-config.php.orig'
|
|
- '{{BaseURL}}/wp-config.php.original'
|
|
- '{{BaseURL}}/_wpeprivate/config.json'
|
|
|
|
stop-at-first-match: true
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "DB_NAME"
|
|
- "DB_PASSWORD"
|
|
part: body
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|