Skip to content

Commit 38b2c53

Browse files
keulinhoshyimmitelg
authored
Add security docs for media upload by url (#2074)
* Add security docs for media upload by url * Update resources/references/security.md Co-authored-by: Shyim <[email protected]> * Update resources/references/security.md Co-authored-by: Michael Telgmann <[email protected]> --------- Co-authored-by: Shyim <[email protected]> Co-authored-by: Michael Telgmann <[email protected]>
1 parent 7639720 commit 38b2c53

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

resources/references/security.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ The default policies are configured over the `shopware.security.csp_templates` s
3737

3838
Shopware 6 stores and processes a wide variety of files. This goes from product images or videos to generated documents such as invoices or delivery notes. This data should be stored securely, and backups should be generated regularly. For more information, refer to [File system](../../guides/hosting/infrastructure/filesystem)
3939

40+
## Media upload by URL
41+
42+
Shopware offers a convenience feature to allow media file uploads by directly providing a URL pointing to a third party location containing that file.
43+
By default, Shopware validates the URL to ensure that it points to a publicly accessible resource; this prevents attacks where internal networking information might be leaked. You can disable this validation by toggling the `shopware.media.enable_url_validation` to false.
44+
However, there is still some security risk in this approach, as your Shopware server makes a request to the external URL and therefore discloses some information about itself (e.g. IP address or user agent).
45+
If this is a concern to you, you can disable the whole URL upload feature by setting `shopware.media.enable_url_upload_feature = false`.
46+
4047
## GDPR compliance
4148

4249
General Data Protection Regulation (GDPR) is a comprehensive European Union (EU) regulation that enhances individuals' privacy rights by imposing strict rules on how organizations collect, process, and protect personal data. For more information, refer to [GDPR](https://docs.shopware.com/en/shopware-6-en/tutorials-and-faq/gdpr) guide.

0 commit comments

Comments
 (0)