additionalSignUpFields
customization option to add a checkbox to the sign-up dialog who are passing a placeholder
property obtained from an untrusted source (e.g., a query parameter) could allow cross-site scripting (XSS) on their sign-up pages.
additionalSignUpFields
as an option when initializing Lock, and it includes a field of type checkbox
with a placeholder
value obtained from an untrusted source.placeholder
value is partially user-controlled by the name
query parameter:
placeholder
property is now treated as plain text to mitigate the problem.placeholderHTML
property is introduced that indicates the level of control it provides and that its value should be supplied only from trusted sources.placeholder
property with HTML content from a trusted source should start using the placeholderHTML
property to continue providing the same user experience.