CVE-2007-1396
What it is
The import_request_variables function in PHP 4.0.7 through 4.4.6, and 5.x before 5.2.2, when called without a prefix, does not prevent the (1) GET, (2) POST, (3) COOKIE, (4) FILES, (5) SERVER, (6) SESSION, and other superglobals from being overwritten, which allows remote attackers to spoof source IP address and Referer data, and have other unspecified impact. NOTE: it could be argued that this is a design limitation of PHP and that only the misuse of this feature, i.e. implementation bugs in applications, should be included in CVE. However, it has been fixed by the vendor.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 1.9% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.9% in the next 30 days (EPSS).
- Severity: 6.8 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.9% · EPSS, next 30 days
- Record status
- Modified
Affected
- PHP 4.0.7
- PHP 4.1.0
- PHP 4.1.1
- PHP 4.1.2
- PHP 4.2.0
- PHP 4.2.1
- PHP 4.2.2
- PHP 4.2.3
Attack profile CVSS 2.0 · 6.8
- Attack vector
- Network
- Complexity
- Medium
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
Raw vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2007-1396.md and follow it. Check whether this project is affected by CVE-2007-1396. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
References
- http://lists.opensuse.org/opensuse-security-announce/2007-07/msg00006.html
- http://secunia.com/advisories/26048
- http://securityreason.com/securityalert/2406
- http://us2.php.net/releases/4_4_7.php
- http://us2.php.net/releases/5_2_2.php
- http://www.securityfocus.com/archive/1/462263/100/0/threaded
- http://www.securityfocus.com/archive/1/462457/100/0/threaded
- http://www.securityfocus.com/archive/1/462658/100/0/threaded
- http://www.securityfocus.com/archive/1/462800/100/0/threaded
- http://www.securityfocus.com/bid/22886
- http://lists.opensuse.org/opensuse-security-announce/2007-07/msg00006.html
- http://secunia.com/advisories/26048
- http://securityreason.com/securityalert/2406
- http://us2.php.net/releases/4_4_7.php
- http://us2.php.net/releases/5_2_2.php
- http://www.securityfocus.com/archive/1/462263/100/0/threaded
- http://www.securityfocus.com/archive/1/462457/100/0/threaded
- http://www.securityfocus.com/archive/1/462658/100/0/threaded
- http://www.securityfocus.com/archive/1/462800/100/0/threaded
- http://www.securityfocus.com/bid/22886