-
Notifications
You must be signed in to change notification settings - Fork 26
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
Even examples shouldn't have massive security holes. #14
Comments
Hi @Danack ,
Regarding the permissions any idea to approach this? It may depend on the developers choice to do this |
Hi @stefanneculai |
@shreypasari-accolite can we update the examples with some code to avoid that? Thanks in advance. |
@stefanneculai |
It's updated now on https://github.com/froala/editor-php-sdk-example, we'll update shortly on the website too. |
The example code given for the PHP documentation has a massive security hole.
That code allows anyone who knows what the delete URL is, to delete any file off the server, that PHP has permissions to delete.
This is sub-optimal.
Even though it is just example code, there should be some example lines that check that the file being deleted is under the appropriate directory, and probably also a note that there should be a permissions check to ensure the user is allowed to delete images.
The text was updated successfully, but these errors were encountered: