php-ini: Php.ini File Disclosure

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

漏洞描述

php.ini file is exposed.

PoC代码[已公开]

id: php-ini

info:
  name: Php.ini File Disclosure
  author: geeknik,DhiyaneshDK
  severity: low
  description: php.ini file is exposed.
  reference:
    - https://www.php.net/manual/en/configuration.file.php
  classification:
    cpe: cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: php
    product: php
    shodan-query: php.ini
  tags: config,exposure,files,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/php.ini"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "[PHP]"
          - "short_open_tag"
          - "safe_mode"
          - "expose_php"
        condition: and

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