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

Prevent manipulation of field Form when posting discussion/comments #1920

Closed
wants to merge 1 commit into from
Closed

Conversation

R-J
Copy link
Contributor

@R-J R-J commented May 13, 2014

Add 'Format' to the fields that are filtered out from POST data.

By now it is possible to spoof the post data to set Format to whatever you like. So malicious users can override Garden.InputFormatter settings on individual basis. Although I think that this is no big issues, users shouldn't be able to add arbitrary text to columns where they shouldn't be able to insert anything on their own

Add 'Format' to the fields that are filtered out from POST data.   
   
By now it is possible to spoof the post data to set Format to whatever you like. So malicious users can override Garden.InputFormatter settings on individual basis. Although I think that this is no big issues, users shouldn't be able to add arbitrary text to columns where they shouldn't be able to insert *anything* on their own
@R-J R-J changed the title Update FilterForm of class.model.php Prevent manipulation of field Form when posting discussion/comments Sep 21, 2014
@JohnIncog
Copy link
Contributor

Hey RJ.

This is a great find. We will just need to find a different way of solving this issue. Since this method will certainly cause problems with the advanced editor.

We suggest something more like: #2123

If you could help me complete and test this we can look at getting into core ASAP.

@R-J
Copy link
Contributor Author

R-J commented Sep 25, 2014

Your alternative would still allow anyone to post html when only text (e.g.) should be allowed. I do not know how the advanced editor is working, so it's hard to think about alternatives ;-)

@linc
Copy link
Contributor

linc commented Sep 25, 2014

@R-J You can get the editor from this pull request: #2108 It should be in this repo shortly.

@linc linc closed this Oct 28, 2014
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.

None yet

3 participants