
CSRF QUIZ
Authored by Christian Peña
Information Technology (IT)
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the term used for injecting JavaScript into a user's web browser through page elements like comment sections, search results, and URLs?
a) Cross-Site Request Forgery
b) SQL Injection
c) Cross-Site Scripting
d) Phishing
A
B
C
D
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the Twitter CSRF attack example, what type of request could be used to create tweets before the site switched to using POST requests?
a) PUT
b) GET
c) DELETE
d) OPTION
A
B
C
D
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of HTTP request is uniquely vulnerable to CSRF attacks, as it contains the entirety of the request's contents in a URL?
a) DELETE
b) PUT
c) GET
d) POST
A
B
C
D
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why might setting the SameSite attribute to Strict on session cookies be problematic for users?
a) It forces users to reconfirm their login details frequently.
b) It strips the cookie of any requests from other websites.
c) It allows cross-site requests to send cookies.
d) It prevents users from logging in again.
A
B
C
D
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does an anti-CSRF cookie help prevent CSRF attacks?
a) By preventing the use of cookies in HTML forms
b) By blocking al incoming requests to the server
c) By encrypting al communication between the browser and server
d) By ensuring that requests are only initiated within the same site
A
B
C
D
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the benefit of using Single Sign-On (SSO) in web applications?
a) To alow seamless linking into the site
b) To provide a unified authentication process for multiple systems
c) To improve user experience
d) To protect against cross-site scripting attacks
A
B
C
D
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using Cross-Origin Resource Sharing (CORS) in web development?
a) To prevent cross-site scripting attacks
b) To restrict the types of content that can be loaded on a web page
c) To authenticate users before granting access to the web application
d) To alow resources to be requested from another domain
A
B
C
D
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?