0
0
Testing Fundamentalstesting~5 mins

XSS testing in Testing Fundamentals - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does XSS stand for in web security?
XSS stands for Cross-Site Scripting. It is a security vulnerability where attackers inject malicious scripts into trusted websites.
Click to reveal answer
beginner
Why is XSS testing important?
XSS testing helps find security holes where attackers can run harmful scripts on users' browsers, protecting users and data.
Click to reveal answer
intermediate
Name two common types of XSS attacks.
The two common types are Stored XSS (where malicious code is saved on the server) and Reflected XSS (where malicious code is reflected off a web server).
Click to reveal answer
beginner
What is a simple test input to check for XSS vulnerability?
A simple test input is: . If this runs as a popup, the site is vulnerable.
Click to reveal answer
intermediate
How can developers prevent XSS attacks?
Developers can prevent XSS by validating and encoding user inputs, using security headers, and applying Content Security Policy (CSP).
Click to reveal answer
What does XSS testing primarily check for?
ABroken links on a website
BSlow page loading times
CInjection of malicious scripts into web pages
DIncorrect spelling on web pages
Which of these is a common sign of an XSS vulnerability?
APage has a sitemap
BUser input is displayed without filtering
CWebsite uses HTTPS
DPage images do not load
Stored XSS differs from Reflected XSS because Stored XSS:
ADoes not involve scripts
BOnly affects the browser cache
CIs always harmless
DSaves malicious code on the server
Which method helps prevent XSS attacks?
AEncoding user inputs before display
BDisabling JavaScript completely
CUsing large images
DIncreasing server RAM
A simple test script to check for XSS is:
A<script>alert('XSS')</script>
B<img src='image.jpg'>
C<div>Hello</div>
D<a href='link'>Click</a>
Explain what XSS testing is and why it matters for website security.
Think about how attackers use scripts and what harm they cause.
You got /3 concepts.
    Describe two types of XSS attacks and how you might test for them.
    Consider where the malicious code is stored or reflected.
    You got /3 concepts.