GHSA-7mv4-4xpg-xq44

    Dashboard / Vulnerabilities / GHSA-7mv4-4xpg-xq44

    GHSA-7mv4-4xpg-xq44

    Published: 26 Mar 2022Last Modified: 17 Feb 2024

    Summary: FormField with square brackets in field name skips validation

    Details: 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.

    Affected packages

    Package

    Name: silverstripe/framework

    Purl: pkg:composer/silverstripe/framework

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 3.0.0
    Fixed -4.7.4

    Affected versions

    3.0.10
    3.0.10-rc1
    3.0.11
    3.0.11-rc1
    3.0.12
    3.0.13
    3.0.14
    3.0.2.1
    3.0.3
    3.0.3-rc1
    3.0.3-rc2
    3.0.4
    3.0.5
    3.0.6
    3.0.6-rc1
    3.0.6-rc2
    3.0.7
    3.0.7-rc1
    3.0.8
    3.0.9
    3.0.9-rc1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-7mv4-4xpg-xq44 | CVE-DB