mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-04 17:53:27 +08:00
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
id: php-eol
|
|
|
|
info:
|
|
name: PHP End-of-Life - Detect
|
|
author: Shivam Kamboj
|
|
severity: info
|
|
description: |
|
|
Detected PHP versions that have reached End-of-Life (EOL) and no longer receive security updates.
|
|
reference:
|
|
- https://www.php.net/supported-versions.php
|
|
- https://endoflife.date/php
|
|
metadata:
|
|
verified: true
|
|
max-request: 1
|
|
shodan-query: "X-Powered-By: PHP/"
|
|
tags: tech,php,eol
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}"
|
|
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- compare_versions(version, '<8.0.0') # This version (8.1.33) ends in 1 month (31 Dec 2025)."
|
|
- contains(tolower(header), 'php')
|
|
condition: and
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: header
|
|
name: version
|
|
group: 1
|
|
regex:
|
|
- 'X-Powered-By: PHP/([0-9.]+)'
|
|
- 'Server:.*PHP/([0-9.]+)'
|
|
# digest: 490a004630440220027824f978184f313710b099dfe8d0f70ee7110a2dddc4aa350da875f160ec1302205330d9a4837caa41c17d134f05397a0493b9cff0fea90b71ef35555dfd9dc435:922c64590222798bb761d5b6d8e72950 |