Advisory

GHSA-97jm-g33h-f46g

Also known as: None

Summary

silverstripe/framework ReadOnly transformation for formfields exploitable

Details

Form fields returning isReadonly() as true are vulnerable to reflected XSS injections. This includes ReadonlyField, LookupField, HTMLReadonlyField, as well as special purpose fields like TimeField_Readonly. Values submitted to through these form fields are not filtered out from the form session data, and might be shown to the user depending on the form behaviour. For example, form validation errors cause the form to re-render with previously submitted values by default.

SilverStripe forms automatically load values from request data (GET and POST), which enables malicious use of URLs if your form uses these fields and doesn't overwrite data on form construction.

Readonly and disabled form fields are already filtered out in Form->saveInto(), so maliciously submitted data on these fields doesn't make it into the database unless you are accessing form values directly in your saving logic.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-05-23 19:50 UTC
Modified
2024-11-28 05:30 UTC

Affected packages and fixes

silverstripe/framework

Packagist · All systems

Affected

  • introduced 0, fixed 3.1.21 (ecosystem)

Fixed versions

3.1.21

Fix

The export has no generic command for this ecosystem.

silverstripe/framework

Packagist · All systems

Affected

  • introduced 3.2.0, fixed 3.2.6 (ecosystem)

Fixed versions

3.2.6

Fix

The export has no generic command for this ecosystem.

silverstripe/framework

Packagist · All systems

Affected

  • introduced 3.3.0, fixed 3.3.4 (ecosystem)

Fixed versions

3.3.4

Fix

The export has no generic command for this ecosystem.

silverstripe/framework

Packagist · All systems

Affected

  • introduced 3.4.0, fixed 3.4.2 (ecosystem)

Fixed versions

3.4.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences