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

Store images used in product descriptions #10376

Open
mkllnk opened this issue Feb 6, 2023 · 0 comments
Open

Store images used in product descriptions #10376

mkllnk opened this issue Feb 6, 2023 · 0 comments
Labels
hackathon Issues for upcoming hackathons tech debt

Comments

@mkllnk
Copy link
Member

mkllnk commented Feb 6, 2023

What we should change and why (this is tech debt)

We allow the img HTML tag in product descriptions and display the image in the shopfront. While this was the easiest way to show images it potentially opens up attack vectors to compromise a user's privacy or deceive them with an image.

A better solution would be to store images with ActiveStorage and serve them from there. The storage is in our control and doesn't allow tracking of users. It also means that we can serve images quicker than some random websites and that we can optimise the image and limit the size.

Context

Impact and timeline

The security issue is theoretical at the moment and may only exist in conjunction with another vulnerability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hackathon Issues for upcoming hackathons tech debt
Projects
Status: All the things
Development

No branches or pull requests

1 participant