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

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Wayground Content
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is it recommended to avoid using inline scripts on a secure website?
They can lead to cross-site scripting vulnerabilities.
They are not supported by all browsers.
They are difficult to maintain.
They increase the website's loading time.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the nonce attribute in a script tag?
To uniquely identify and whitelist a specific inline script.
To provide a fallback for unsupported browsers.
To improve the script's performance.
To specify the script's execution order.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How should a nonce be generated for each page response?
By using the same ID for all responses.
By using a secure random ID that changes with each response.
By using a timestamp.
By using a hardcoded value.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an alternative method to nonce for whitelisting inline scripts?
Using a script tag.
Using a script URL.
Using a script ID.
Using a script hash.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What must be done if the JavaScript content of a script tag changes?
The script tag must be removed.
The nonce must be updated.
The hash must be regenerated.
Nothing, the hash remains the same.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you obtain the hash for a script using Chrome developer tools?
By using a third-party tool.
By manually calculating the hash.
By running the script with the content security policy header set.
By inspecting the script tag in the HTML.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the report-only mode in content security policy?
To disable content security policy.
To report violations without enforcing restrictions.
To allow all scripts by default.
To enforce restrictions immediately.
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Modern HTML and CSS from the Beginning (Including Sass) - Divs & Spans, Classes & Ids

Interactive video
•
University
8 questions
Bash Shell Scripting- Simple Hello World awk script

Interactive video
•
University
6 questions
AWS, JavaScript, React - Deploy Web Apps on the Cloud - Dynamic Styling

Interactive video
•
University
6 questions
JavaScript Mastery from Zero to Hero - Prepare for Coding Interviews - How to Write Multi-Line Comments in JavaScript

Interactive video
•
University
8 questions
Full Stack Web Development MASTERY Course - Novice to Expert - Introduction to CSS

Interactive video
•
University
8 questions
The Complete Ethical Hacking Bootcamp: Beginner To Advanced - Using Nmap Scripts - 1

Interactive video
•
University
11 questions
Modern HTML and CSS from the Beginning (Including Sass) - Links, Images & Attributes

Interactive video
•
University
8 questions
CompTIA A+ Certification Core 2 (220-1102) - Scripting and the Terminal

Interactive video
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University