Coder Social home page Coder Social logo

faizalanwar / cve-2024-4577 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tam-k592/cve-2024-4577

0.0 0.0 0.0 465 KB

CVE-2024-4577 is a critical vulnerability in PHP affecting CGI configurations, allowing attackers to execute arbitrary commands via crafted URL parameters.

Python 48.64% Go 51.36%

cve-2024-4577's Introduction

Orange Tsi ๐ŸŠ

This vulnerability was found by Orange Tsai (@orange_8361) of DEVCORE (@d3vc0r3). Make sure to follow his outstanding research, our role was to only recreate and develop the exploit for this issue. Security Alert: CVE-2024-4577 PHP CGI Argument Injection Vulnerability

Overview CVE-2024-4577 is a critical vulnerability in PHP affecting CGI configurations, allowing attackers to execute arbitrary commands via crafted URL parameters.

Affected Versions PHP 8.3 < 8.3.8 PHP 8.2 < 8.2.20 PHP 8.1 < 8.1.29

Attack Vector Attackers can exploit this by sending specially crafted requests to the PHP CGI script, injecting malicious parameters to execute arbitrary commands. This can lead to full system compromise.

Mitigation

  • Upgrade to the latest PHP version(It is strongly recommended that all users upgrade to the latest PHP versions of 8.3.8, 8.2.20, and 8.1.29)
  • Sanitize and validate input parameters.
  • Use secure configuration settings to limit CGI parameter handling.

How to Use Python Script Install the requests library: pip install requests Run the script: python test_cgi_vulnerability.py Enter the URL to test when prompted.

Go Script Make sure Go is installed on your system. Run the script: go run test_cgi_vulnerability.go Enter the URL to test when prompted. Notes These scripts check for the vulnerability by sending harmless payloads and examining the response. Ensure you have permission to test the target server. Adjust the payloads or URLs as necessary for your specific setup. Install the requests library: pip install requests Run the script: python test_cgi_vulnerability.py Enter the URL to test when prompted.

Go Script Run the script: go run test_cgi_vulnerability.go Enter the URL to test when prompted. Notes These scripts check for the vulnerability by sending harmless payloads and examining the response. Ensure you have permission to test the target server. Adjust the payloads or URLs as necessary for your specific setup.

cve-2024-4577's People

Contributors

tam-k592 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.