Add a token the filename for exported user data
Also redirect to it for download, for Amazon S3 compatibility. Prior to this patch an attacker could obtain an users export by guessing the filename with a high chance of success. Fully authenticating the download request is a lot harder due to our diverse deployment scenarios. This brings the used method in line with the photo export feature. Thanks to @tomekr for the report.
parent
7648b58c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/controllers/users_controller.rb 1 ajout, 1 suppressionapp/controllers/users_controller.rb
- app/uploaders/exported_photos.rb 2 ajouts, 6 suppressionsapp/uploaders/exported_photos.rb
- app/uploaders/exported_user.rb 2 ajouts, 2 suppressionsapp/uploaders/exported_user.rb
- app/uploaders/secure_uploader.rb 7 ajouts, 0 suppressionapp/uploaders/secure_uploader.rb
- spec/controllers/users_controller_spec.rb 3 ajouts, 4 suppressionsspec/controllers/users_controller_spec.rb
app/uploaders/secure_uploader.rb
0 → 100644
Veuillez vous inscrire ou vous se connecter pour commenter