-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
All product data public available via API #3786
Comments
Confirmed. Also shows hidden products, including future promotion prices and periods. |
Here's the full list of API methods for a standard install. Most seem to be behind ACL, except for products, storeConfigs etc. |
Here's a command to find all the endpoints which can be accessed without authentifcation: Which results in this for a standard install:
So in short:
Or am I being too pessimistic here? |
Pretty major security problem, not assigned yet. Any update? |
Thanks for reporting this issue. We have created MAGETWO-50611 and MAGETWO-50608 tickets internally. |
I see the issues are fixed in CE 2.0.3. Thank you for fixing this in a relative short time span. |
Hello @PaulBoss, yes, as you see the issue is fixed now. Thanks for finding and reporting the issue! |
So if im building a mobile app how do I list the products/categories on my app. What API so I use as a anonymous user or a customer? |
Would love to open up this discussion again. |
It is easy to create a plugin with your own API endpoints directly based on the API endpoints that are available. This way you can make these non authenticated and only return the information your app needs. You can never know in advance for every Magento store ever which information is publicly accessible. So opening this up be default is never a good idea. |
"You can never know in advance for every Magento store ever which information is publicly accessible." Why is that? I guess any ecommerce platform has control over what is displayed on the frontend store. The same rules cant be applied on the API? |
The same rules can be applied to the API, ofcourse. But it should not be open by default, which it was. And when enabling complete read only access to the product repository a user should be able to select which product properties should be visible via the API and only the visible products should be available. If it is open by default and not meant to by the developer, developers will forget to close it, or they do not even know that it is open. And that is what happend here. I've spoken to a few companies with live Magento 2 sites and when I told them I had complete access to the complete product repository they were all amazed. They did not know this was a feature by design! |
[2.3.1-qwerty] Sync with 2.3.1-release
Steps to reproduce
develop
branch.Expected result
Actual result
The text was updated successfully, but these errors were encountered: