php-cs-cache: PHP-CS-Fixer Cache - File Disclosure

日期: 2025-08-01 | 影响软件: php cs cache | POC: 已公开

漏洞描述

PHP CS fixer cache internal file is disclosed.

PoC代码[已公开]

id: php-cs-cache

info:
  name: PHP-CS-Fixer Cache - File Disclosure
  author: DhiyaneshDk
  severity: medium
  description: PHP CS fixer cache internal file is disclosed.
  reference:
    - https://www.acunetix.com/vulnerabilities/web/php-cs-fixer-cache-file-publicly-accessible-php_cs-cache/
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"php_cs.cache"
  tags: exposure,files,php,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/.php_cs.cache"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '{"php":'
          - '"version":'
          - '"indent":'
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100a29471871e13f9a145e0723f253cd8f7345f2ae8de9c4c2afa2c3cff06254dcd0220276cc3431bdc27c8acc720dd77dd8900b2547674f9d1f6d89e206683d9e09e2a:922c64590222798bb761d5b6d8e72950