
Web Application Security Quiz

Quiz
•
Computers
•
University
•
Hard
Keitumetse Taumoloko
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between content spoofing and reflected XSS?
Content spoofing is a subset of XSS, while reflected XSS involves submitting malicious javascript code in HTTP requests
Content spoofing uses advanced javascript frameworks, while reflected XSS considers the types of input in HTTP requests
Content spoofing involves running attack-driven code in the client browser, while reflected XSS hides legitimate page content with absolutely positioned elements
Content spoofing allows users to change a portion of the URL to modify content directly, while reflected XSS involves tampering with HTTP requests
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first line of defense for every web application against XSS?
Html validation and sanitisation
Secure JSON patterns
Contextual output encoding
Input validation
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which technique converts data to a form that is display-only and prevents the execution of javascript or rendering of HTML tags?
Html validation and sanitisation
Input validation
Secure JSON patterns
Contextual output encoding
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When should you use HTML validation and sanitisation?
When you want to allow all HTML without any restrictions
When you want users to submit any HTML to your website
When you want to allow only a limited subset of HTML and remove dangerous attributes
When you want to eliminate all HTML from user submissions
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using secure JSON patterns in web applications?
To deliver an HTML file without data and then populate it with JSON
To populate HTML files with untrusted data directly
To increase the attack surface by allowing untrusted data in JSON
To prevent XSS attacks by parsing JSON data using the eval function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which context requires different encoding methods depending on where untrusted data is inserted into the webpage?
Javascript block content
Javascript attribute context
Attribute context
HTML context
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the recommended approach to parse JSON data in modern applications?
Use JSON.parse to avoid untrusted data in JSON
Use the eval function to prevent untrusted data from coming through
Use HTML sanitisation to parse JSON data
Use unpopulated HTML files for JSON data
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
035_Cloud-specific Vulnerabilities – CompTIA Security+ –

Quiz
•
9th Grade - University
20 questions
SOAP

Quiz
•
University
20 questions
PHP Form

Quiz
•
University
10 questions
ข้อสอบย่อยวิชา จาวาเว็บ ครั้งที่ 7

Quiz
•
University
15 questions
IT SKILLS

Quiz
•
University
10 questions
SVG Quiz

Quiz
•
University
14 questions
Configuración de Servidores Web Unidad2

Quiz
•
University
20 questions
Web Designing Quiz-1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University