Q: 1
[Security Design]
An application has a web page where users can upload and view images. The application uses a
Content Security Policy (CSP) to prevent cross-site scripting attacks by restricting the sources of
scripts and images that the browser can load. The CSP has the following directives: default-src 'self';
script-src 'self'https://cdn.example.com; img-src 'self' data: blob:. What happens if a user tries to
upload and view an image fromhttps://malicious.comon the web page?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.