2021-05-07 19:55:06 +00:00
|
|
|
id: php-backup-files
|
|
|
|
|
|
|
|
info:
|
2023-02-13 14:41:20 +00:00
|
|
|
name: PHP Source - Backup File Information Disclosure
|
2023-03-04 08:05:35 +00:00
|
|
|
author: StreetOfHackerR007,pwnhxl
|
2021-05-07 19:55:06 +00:00
|
|
|
severity: medium
|
2023-03-04 08:05:35 +00:00
|
|
|
tags: exposure,backup,php,disclosure,fuzz
|
2021-05-07 19:55:06 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
2023-03-04 08:05:35 +00:00
|
|
|
- "{{BaseURL}}{{filepath}}{{bakext}}"
|
|
|
|
|
|
|
|
attack: clusterbomb
|
|
|
|
payloads:
|
|
|
|
filepath:
|
|
|
|
- /wp-config.php # wordpress
|
|
|
|
- /site/default/settings.php # drupal
|
|
|
|
- /installation/configuration.php # joomla
|
|
|
|
- /app/etc/env.php # magento
|
|
|
|
- /Application/Common/Conf/config.php # thinkphp
|
|
|
|
- /environments/dev/common/config/main-local.php # yii
|
|
|
|
- /environments/prod/common/config/main-local.php # yii
|
|
|
|
- /common/config/main-local.php # yii
|
|
|
|
- /system/config/default.php # opencart
|
|
|
|
- /typo3conf/localconf.php # typo3
|
|
|
|
- /config/config_global.php # discuz
|
|
|
|
- /config/config_ucenter.php # discuz
|
|
|
|
- /textpattern/config.php # textpattern
|
|
|
|
- /data/common.inc.php # dedecms
|
|
|
|
- /caches/configs/database.php # phpcms
|
|
|
|
- /caches/configs/system.php # phpcms
|
|
|
|
- /include/config.inc.php # phpcms
|
|
|
|
- /phpsso_server/caches/configs/database.php # phpcms
|
|
|
|
- /phpsso_server/caches/configs/system.php # phpcms
|
|
|
|
- /zb_users/c_option.php # zblog
|
|
|
|
- /e/class/config.php # empirecms
|
|
|
|
- /e/config/config.php # empirecms
|
|
|
|
- /data/sql_config.php # phpwind
|
|
|
|
- /data/bbscache/config.php # phpwind
|
|
|
|
- /db.php
|
|
|
|
- /conn.php
|
|
|
|
- /database.php
|
|
|
|
- /db_config.php
|
|
|
|
- /config.inc.php
|
|
|
|
- /data/config.php
|
|
|
|
- /config/config.php
|
|
|
|
- /index.php
|
|
|
|
- /default.php
|
|
|
|
- /main.php
|
|
|
|
- /settings.php
|
|
|
|
- /header.php
|
|
|
|
- /footer.php
|
|
|
|
- /login.php
|
|
|
|
- /404.php
|
|
|
|
- /wp-login.php
|
|
|
|
- /config.php
|
|
|
|
|
|
|
|
bakext:
|
|
|
|
- ".~"
|
|
|
|
- ".bk"
|
|
|
|
- ".bak"
|
|
|
|
- ".BAK"
|
|
|
|
- ".swp"
|
|
|
|
- ".swo"
|
|
|
|
- ".swn"
|
|
|
|
- ".tmp"
|
|
|
|
- ".save"
|
|
|
|
- ".old"
|
|
|
|
- ".new"
|
|
|
|
- ".orig"
|
|
|
|
- ".dist"
|
|
|
|
- ".txt"
|
|
|
|
- ".disabled"
|
|
|
|
- ".original"
|
|
|
|
- ".backup"
|
|
|
|
- "_bak"
|
|
|
|
- "_1.bak"
|
|
|
|
- "~"
|
|
|
|
- "!"
|
|
|
|
- ".0"
|
|
|
|
- ".1"
|
|
|
|
- ".2"
|
|
|
|
- ".3"
|
2021-05-11 19:15:00 +00:00
|
|
|
|
2021-05-07 19:55:06 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
- type: word
|
2023-03-04 08:05:35 +00:00
|
|
|
part: body
|
2021-05-07 19:55:06 +00:00
|
|
|
words:
|
|
|
|
- "<?php"
|
|
|
|
- "<?="
|
2021-05-11 19:15:00 +00:00
|
|
|
condition: or
|
|
|
|
|
|
|
|
- type: word
|
2023-03-04 08:05:35 +00:00
|
|
|
part: body
|
2021-05-11 19:15:00 +00:00
|
|
|
words:
|
|
|
|
- "?>"
|
2023-03-04 08:05:35 +00:00
|
|
|
- "($"
|
|
|
|
- "$_GET["
|
|
|
|
- "$_POST["
|
|
|
|
- "$_REQUEST["
|
|
|
|
- "$_SERVER["
|
|
|
|
condition: or
|
2021-05-11 19:15:00 +00:00
|
|
|
|
|
|
|
- type: word
|
2023-03-04 08:05:35 +00:00
|
|
|
part: header
|
2021-05-11 19:15:00 +00:00
|
|
|
words:
|
|
|
|
- "text/plain"
|
|
|
|
- "bytes"
|
2023-03-04 08:05:35 +00:00
|
|
|
condition: or
|