Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] Set data directly into state rather than faking a proxy into the input #27696

Merged
merged 1 commit into from
Feb 8, 2020

Conversation

wilsonge
Copy link
Contributor

@wilsonge wilsonge commented Jan 28, 2020

Summary of Changes

I missed in the GSOC project we'd started to store state fullblown in the input object which is obviously wrong. This changes it so we do webservices properly and build a state object to pass into the model. This is a moderate security fix to the unreleased webservices because potentially with this you can inject arbitrary state into the model directly from query parameters which is obviously bad.

Testing Instructions

Affected webservices (e.g. categories) continue to function with no changes from before.

Documentation Changes Required

Yes when webservices are documented

@wilsonge wilsonge force-pushed the webservice_state_inject branch from 6516c49 to 3d3638b Compare February 3, 2020 19:52
@wilsonge wilsonge marked this pull request as ready for review February 3, 2020 19:53
@wilsonge wilsonge changed the title [WIP] Set data directly into state rather than faking a proxy into the input Set data directly into state rather than faking a proxy into the input Feb 3, 2020
@wilsonge wilsonge changed the title Set data directly into state rather than faking a proxy into the input [4.0] Set data directly into state rather than faking a proxy into the input Feb 3, 2020
@wilsonge wilsonge merged commit edd215f into joomla:4.0-dev Feb 8, 2020
@wilsonge wilsonge deleted the webservice_state_inject branch February 8, 2020 16:00
@wilsonge wilsonge added this to the Joomla 4.0 milestone Feb 8, 2020
brianteeman pushed a commit to brianteeman/joomla-cms that referenced this pull request Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants