CakePHP allows remote attackers to spoof their IP
The advisory, in context
The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP header.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
From 1.2.0 before 2.6.13
Fixed in 2.6.13
34 explicitly affected versions
2.4.10, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9, 2.5.0, 2.5.0-RC1, 2.5.0-RC2, 2.5.0-beta, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.5.6, 2.5.7, 2.5.8, 2.5.9, 2.6.0, 2.6.0-RC1, 2.6.0-beta, 2.6.1, 2.6.10, 2.6.11, 2.6.12, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.6.6, 2.6.7, 2.6.8, 2.6.9
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.2.0"
},
{
"fixed": "2.6.13"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.4.10",
"2.4.5",
"2.4.6",
"2.4.7",
"2.4.8",
"2.4.9",
"2.5.0",
"2.5.0-RC1",
"2.5.0-RC2",
"2.5.0-beta",
"2.5.1",
"2.5.2",
"2.5.3",
"2.5.4",
"2.5.5",
"2.5.6",
"2.5.7",
"2.5.8",
"2.5.9",
"2.6.0",
"2.6.0-RC1",
"2.6.0-beta",
"2.6.1",
"2.6.10",
"2.6.11",
"2.6.12",
"2.6.2",
"2.6.3",
"2.6.4",
"2.6.5",
"2.6.6",
"2.6.7",
"2.6.8",
"2.6.9"
]
}From 2.7.0-rc1 before 2.7.11
Fixed in 2.7.11
11 explicitly affected versions
2.7.0, 2.7.1, 2.7.10, 2.7.2, 2.7.3, 2.7.4, 2.7.5, 2.7.6, 2.7.7, 2.7.8, 2.7.9
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "2.7.0-rc1"
},
{
"fixed": "2.7.11"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.7.0",
"2.7.1",
"2.7.10",
"2.7.2",
"2.7.3",
"2.7.4",
"2.7.5",
"2.7.6",
"2.7.7",
"2.7.8",
"2.7.9"
]
}From 2.8.0-rc1 before 2.8.2
Fixed in 2.8.2
3 explicitly affected versions
2.8.0, 2.8.0-RC1, 2.8.1
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "2.8.0-rc1"
},
{
"fixed": "2.8.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.8.0",
"2.8.0-RC1",
"2.8.1"
]
}From 3.0.0-rc1 before 3.0.17
Fixed in 3.0.17
19 explicitly affected versions
3.0.0, 3.0.0-RC1, 3.0.0-RC2, 3.0.1, 3.0.10, 3.0.11, 3.0.12, 3.0.13, 3.0.14, 3.0.15, 3.0.16, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "3.0.0-rc1"
},
{
"fixed": "3.0.17"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.0.0",
"3.0.0-RC1",
"3.0.0-RC2",
"3.0.1",
"3.0.10",
"3.0.11",
"3.0.12",
"3.0.13",
"3.0.14",
"3.0.15",
"3.0.16",
"3.0.2",
"3.0.3",
"3.0.4",
"3.0.5",
"3.0.6",
"3.0.7",
"3.0.8",
"3.0.9"
]
}From 3.1.0-beta1 before 3.1.12
Fixed in 3.1.12
14 explicitly affected versions
3.1.0, 3.1.0-RC1, 3.1.0-beta2, 3.1.1, 3.1.10, 3.1.11, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "3.1.0-beta1"
},
{
"fixed": "3.1.12"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.1.0",
"3.1.0-RC1",
"3.1.0-beta2",
"3.1.1",
"3.1.10",
"3.1.11",
"3.1.2",
"3.1.3",
"3.1.4",
"3.1.5",
"3.1.6",
"3.1.7",
"3.1.8",
"3.1.9"
]
}From 3.2.0-rc1 before 3.2.5
Fixed in 3.2.5
6 explicitly affected versions
3.2.0, 3.2.0-RC1, 3.2.1, 3.2.2, 3.2.3, 3.2.4
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "3.2.0-rc1"
},
{
"fixed": "3.2.5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.2.0",
"3.2.0-RC1",
"3.2.1",
"3.2.2",
"3.2.3",
"3.2.4"
]
}References
- https://nvd.nist.gov/vuln/detail/CVE-2016-4793
- https://github.com/cakephp/cakephp/commit/908754649f70bab2b1093942e17c9a46a2fcf6c2
- https://bakery.cakephp.org/2016/03/13/cakephp_2613_2711_282_3017_3112_325_released.html
- https://github.com/cakephp/cakephp
- https://support.citrix.com/article/CTX236992
- https://www.exploit-db.com/exploits/39813
- http://legalhackers.com/advisories/CakePHP-IP-Spoofing-Vulnerability.txt
- http://www.securityfocus.com/bid/95846