Web Security: Common Vulnerabilities And Their Mitigation - The nonce attribute and the script hash

Web Security: Common Vulnerabilities And Their Mitigation - The nonce attribute and the script hash

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial covers the importance of avoiding inline scripts for web security and introduces methods to safely use them when necessary. It explains the use of the nonce attribute and script hashing to whitelist inline scripts under Content Security Policy (CSP). The tutorial also provides guidance on implementing CSP in existing production sites, including using report-only mode to identify and fix violations before full enforcement.

Read more

10 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the purpose of avoiding inline scripts when coding a secure website?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Explain the nonce attribute and its significance in whitelisting inline scripts.

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

How should the nonce value be handled to ensure security?

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

What are the implications of hardcoding a nonce value?

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the role of the content security policy header in relation to inline scripts?

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 1 pt

Describe the process of generating a nonce for each page response.

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

How can a script hash be used as an alternative to a nonce?

Evaluate responses using AI:

OFF

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?