Anyone can download any file on any installation without being authenticated 😱
Given that Media IDs are sequential, just go to https://xxx/nova-vendor/ebess/advanced-nova-media-library/download/[0-9]* and download what you want.
Solution
Use UUID, they are use for this at spatie.
I do not replace ID by UUID in this PR because perhaps some users use this actual URL pattern for other cases. So we just need to add the unpredictable UUID of the Media in the query string and check in the Download Controller if the UUID is correct.
Problem
Anyone can download any file on any installation without being authenticated 😱
Given that Media IDs are sequential, just go to
https://xxx/nova-vendor/ebess/advanced-nova-media-library/download/[0-9]*
and download what you want.Solution
Use UUID, they are use for this at spatie.
I do not replace ID by UUID in this PR because perhaps some users use this actual URL pattern for other cases. So we just need to add the unpredictable UUID of the Media in the query string and check in the Download Controller if the UUID is correct.
Can solve #261