Merge pull request #13927 from dashevchenko/svgCodeInjection
Malicious code injection into the SVG image vulnerability
This commit is contained in:
commit
8e400fa2b4
@ -300,6 +300,7 @@ public class ImageController extends BaseController {
|
||||
tbImageService.putETag(cacheKey, descriptor.getEtag());
|
||||
var result = ResponseEntity.ok()
|
||||
.header("Content-Type", descriptor.getMediaType())
|
||||
.header("Content-Security-Policy", "default-src 'none'")
|
||||
.eTag(descriptor.getEtag());
|
||||
if (!cacheKey.isPublic()) {
|
||||
result
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user