Form validation can be skipped
The advisory, in context
Impact
By crafting a special GET request containing a valid form state, a form can be submitted without invoking any validators.
We consider the severity low because it is not possible to change any form values since the form state is secured with an HMAC that is still verified.
That means that this issue can only be exploited if Form Finishers cause side effects even if no form values have been sent.
Patches
https://github.com/neos/form/commit/69de4219b1f58157e2be6b05811463875d75c246
Workarounds
Form Finishers can be adjusted in a way that they only execute an action if the submitted form contains some expected data. Alternatively a custom Finisher can be added as first finisher.
References
This regression was introduced with https://github.com/neos/form/commit/049d415295be8d4a0478ccba97dba1bb81649567 Original report: https://tickets.neos.io/#ticket/zoom/411 (internal)
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 4.3.3
Fixed in 4.3.3
28 explicitly affected versions
1.2.0, 1.2.1, 1.2.2, 1.2.3, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 3.0.0, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.3.0, 4.3.1, 4.3.2
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.2.0"
},
{
"fixed": "4.3.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.2.0",
"1.2.1",
"1.2.2",
"1.2.3",
"2.0.0",
"2.0.1",
"2.0.2",
"2.0.3",
"2.0.4",
"2.0.5",
"3.0.0",
"4.0.0",
"4.0.1",
"4.0.2",
"4.0.3",
"4.1.0",
"4.1.1",
"4.1.2",
"4.1.3",
"4.1.4",
"4.1.5",
"4.2.0",
"4.2.1",
"4.2.2",
"4.2.3",
"4.3.0",
"4.3.1",
"4.3.2"
]
}From 5.0.0 before 5.0.9
Fixed in 5.0.9
9 explicitly affected versions
5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.0.5, 5.0.6, 5.0.7, 5.0.8
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.9"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.0.0",
"5.0.1",
"5.0.2",
"5.0.3",
"5.0.4",
"5.0.5",
"5.0.6",
"5.0.7",
"5.0.8"
]
}From 5.1.0 before 5.1.3
Fixed in 5.1.3
3 explicitly affected versions
5.1.0, 5.1.1, 5.1.2
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "5.1.0"
},
{
"fixed": "5.1.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.1.0",
"5.1.1",
"5.1.2"
]
}References
- https://github.com/neos/form/security/advisories/GHSA-m5vx-8chx-qvmm
- https://nvd.nist.gov/vuln/detail/CVE-2021-32697
- https://github.com/neos/form-ghsa-m5vx-8chx-qvmm/pull/1
- https://github.com/neos/form/commit/049d415295be8d4a0478ccba97dba1bb81649567
- https://github.com/neos/form/commit/69de4219b1f58157e2be6b05811463875d75c246
- https://github.com/FriendsOfPHP/security-advisories/blob/master/neos/form/CVE-2021-32697.yaml
- https://github.com/neos/form/releases/tag/5.1.3