5.3medium
FormField with square brackets in field name skips validation
- Severity
- 5.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.34% (higher than 72% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-7mv4-4xpg-xq44BIT-SILVERSTRIPE-2020-26138
Description
In SilverStripe through 4.6.0-rc1, a FormField with square brackets in the field name skips validation.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| silverstripe/framework (Packagist) | from 3.0.0 before 4.7.4 | GitHub Advisory Database |
| silverstripe silverstripe | before 4.6.0, 4.6.0 | NVD |
| silverstripe (Bitnami) | before 4.6.0, from 4.6.0-rc1 up to 4.6.0-rc1 | Bitnami Vulnerability Database |
All scores
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
In SilverStripe through 4.6.0-rc1, a FormField with square brackets in the field name skips validation.
GitHub Advisory Database
FileField with array notation skips validation
The FileField class is commonly used for file upload in custom code on a Silverstripe website. This field is designed to be used with a single file upload.
PHP allows for submitting multiple values by adding square brackets to the field name. When this is done to a FileField, it will be coerced into allowing multiple files by using this notation. This is not a supported feature, though nothing is done to prevent this.
In this scenario, validation such as limiting allowed extensions is not applied, and the FileField->saveInto() behaviour is not triggered. If custom controller logic is used to process the file uploads, it might implicitly rely on validation to be provided by the Form system, which is not the case.
NVD (es)
En SilverStripe versiones hasta 4.6.0-rc1, un FormField con corchetes en el nombre del campo omite la comprobación
References
| https://www.silverstripe.org/download/security-releases/ | vendor-advisory, web | |
| https://www.silverstripe.org/blog/tag/release | release-notes, vendor-advisory, web | |
| https://forum.silverstripe.org/c/releases | release-notes, vendor-advisory, web | |
| https://www.silverstripe.org/download/security-releases/cve-2020-26138 | exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-26138 | advisory | |
| https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2020-26138.yaml | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26138 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7mv4-4xpg-xq44 changed 2024-02-17 | CC-BY-4.0 |
| NVD | CVE-2020-26138 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-SILVERSTRIPE-2020-26138 changed 2024-03-06 | Apache-2.0 |