Lucene search

K
osvGoogleOSV:GHSA-97JM-G33H-F46G
HistoryMay 23, 2024 - 7:50 p.m.

silverstripe/framework ReadOnly transformation for formfields exploitable

2024-05-2319:50:27
Google
osv.dev
5
silverstripe framework
readonly transformation
form fields
reflected xss
injections
security
session data
form validation errors
request data
malicious urls
saving logic

6.1 Medium

AI Score

Confidence

High

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.

6.1 Medium

AI Score

Confidence

High