-
Notifications
You must be signed in to change notification settings - Fork 21
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
Access forbidden on BackpackElfinderController->showPopup() (browse Crud Field) #65
Comments
🚨 Bot is not sure about this answer. Please verify. 🚨 Based on the information provided in the knowledge sources, I don't have enough specific details to fully address your issue with Backpack 5.0 and FileManager 2.0.2. However, I can provide some insights based on related issues and potential solutions:
As for your temporary solution, while it might work, it's not recommended to modify core files directly. Instead, you could try to extend the If the issue persists, I recommend:
If none of these suggestions help, you may want to open an issue on the Backpack GitHub repository with detailed steps to reproduce the problem, as the specific issue you're encountering is not directly addressed in the provided knowledge sources. ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: Github Issue (closed): [4.0][Bug] Multiple images upload to the File Manager |
The bot seems to have useful insight, let me try it. |
I tried some solutions without success. I keep my issue open. I did not see any mime_types option on the browse field type
|
We're also getting this error |
Please see the following thread for solutions: #59 (comment) |
That worked perfectly, thank you. I agree that my issue is a duplicate and a secure solution has been found. However, I wonder if allowing BackpackElfinderController->showPopup() to receive no mimes query would be secure and leave browse.blade.php untouched. I don't expect change, I just want to point it out for future considerations. |
Hello @filcius thanks for getting back after solving your issue 👍 To answer your question, it's not secure. Imagine the following scenario if we accepted no mimes in the query: Ensuring that the mimes are always set and encrypted (even if they are empty) prevents an attacker from not sending them (manually removing them from the request) and accessing stuff he shouldn't be able to otherwise. We wouldn't need this solution if the Hope it clarifies the things a bit. 👍 Cheers |
@pxpm Ok, the key argument is that the mime type is encrypted, even if empty. Correct me if I am wrong, does that mean that using the browse field with an empty mime, would cause my endpoint to be insecure? |
Insecure only in the "viewing" process. So if you set the mime types to jpg, an user would only be able to see Hope it clarifies it. Let me know if you have other questions 👍 |
@diereysaa Did you try this? It worked for me. |
I am still using Backpack 5.0 and "backpack/pro" 1.1.3, but I doubt that would change anything.
After updating to filemanager 2.0.2, the Crud Field browse type popup generates a 403 http error. This error is generated by BackpackElfinderController->showPopup(), even if the mime type is not submitted in the query.
Is the mime type required in /elfinder/popup/image request? How do we configure it?
The Crud form:
The broken file browser popup:
The error in the log file : staging.ERROR: Someone attempted to tamper with mime types in elfinder popup. The attempt was blocked.
If the mime type is indeed optional, I temporarily changed my version of BackpackElfinderController->showPopup like this. Remember, this is for 2.0.2
The text was updated successfully, but these errors were encountered: