Security mailing lists by PureSourceCode

GHSA-97jm-g33h-f46g

MEDIUM 6.1CVSS 3.1

silverstripe/framework ReadOnly transformation for formfields exploitable

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.

Published
23 May 2024
Last modified
28 Nov 2024
Weakness
CWE-79
Sources
OSVJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Packagist silverstripe/framework < 3.1.21 3.1.21
OSV Packagist silverstripe/framework >= 3.2.0, < 3.2.6 3.2.6
OSV Packagist silverstripe/framework >= 3.3.0, < 3.3.4 3.3.4
OSV Packagist silverstripe/framework >= 3.4.0, < 3.4.2 3.4.2

References

History

  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 23 May 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.