1/36
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
What protocol is the web based on for servers responding to client requests?
HTTP/HTTPS
What is the difference between server-side code and client-side code in a web application?
Server-side code runs on the web server to process the request and build the response; client-side code runs within the web browser on the client machine to modify the web page before display or modify requests made to the server
What is one of the most widespread vulnerabilities in web apps?
Failure to validate user input properly
What indicates an input validation vulnerability in a web app?
A threat actor can send a script via an input field and make the server or client execute that code
What does sanitizing user input help prevent?
XSS attacks
What is output encoding in this section?
Converting special characters into safe format before displaying it
What does CSP stand for in this section?
Content Security Policy
What does a cross-site scripting (XSS) attack exploit?
The fact that the browser is likely to trust scripts that appear to come from a site the user has chosen to visit
What does an XSS attack insert into a trusted site?
A malicious script that appears to be part of the trusted site
What is the first step in a non-persistent XSS attack?
The attacker identifies an input validation vulnerability in the trusted site
What is the second step in a non-persistent XSS attack?
The attacker crafts a URL to perform code injection against the trusted site
What can the crafted XSS URL be delivered through?
A link to the attacker's site from the trusted site or a link in a phishing email message
What happens when the user opens the crafted XSS link?
The trusted site returns a page containing the malicious code injected by the attacker
Why does the malicious code execute in a non-persistent XSS attack?
The browser is likely to be configured to allow the site to run scripts
What can malicious code do in an XSS attack?
Deface the trusted site, steal data from the user's cookies, intercept information entered in a form, or try to install malware
What is the crucial point about how XSS malicious code runs?
It runs in the client's browser with the same permission level as the trusted site
Why is non-persistent XSS called non-persistent?
At no point is data on the web server changed
What is the goal of a stored or persistent XSS attack?
Insert code into a back-end database or content management system used by the trusted site
How can a persistent XSS attack be delivered in this section?
By submitting a post to a bulletin board with a malicious script embedded in the message
What happens when other users view content containing a persistent XSS payload?
The malicious script is executed