Authenticated Stored XSS in Administration
Use the Security Plugin: https://store.shopware.com/en/swag575294366635f/shopware-security-plugin.html
If you cannot use the security plugin, add the following config to your .htaccess file
<IfModule mod_headers.c>
<FilesMatch "\.(?i:svg)$">
Header set Content-Security-Policy "script-src 'none'"
</FilesMatch>
</IfModule>
If you are using nginx as server config, you can add the following to your configuration:
server {
# ...
location ~* ^.+\.svg$ {
add_header Content-Security-Policy "script-src 'none'";
}
}
https://docs.shopware.com/en/shopware-5-en/sicherheitsupdates/security-update-10-2021
{
"github_reviewed": true,
"github_reviewed_at": "2021-10-26T17:56:23Z",
"severity": "MODERATE",
"nvd_published_at": "2021-10-26T15:15:00Z",
"cwe_ids": [
"CWE-79"
]
}