Computer Knowledge · General Awareness
Information Security
4,634 Questions
Information security involves protecting computer systems and data from unauthorized access, cyber threats, and damage. It is a core part of the computer knowledge section in various banking and government exams. Practicing these concepts helps in understanding digital signatures, network security, and access control effectively.
Cybersecurity threatsAccess controlCryptography basicsSecurity risk managementDatabase protection
Information Security Questions
-
XSS attacks typically directly target the web server
-
XSS attacks typically directly target the web application
-
XSS attacks typically directly target the user
-
All
C
Correct answer
Explanation
Cross-Site Scripting (XSS) attacks inject malicious scripts into trusted websites, which are then executed in the victim's browser. Therefore, the primary direct target of an XSS attack is the end user rather than the server or application framework.
-
Attacker must aware of target website
-
vicktim must logged in the target website
-
victim must be tricked executing unwanted actions on a web application in which he/she is currently authenticated.
-
Website must be vulnerable to XSS
-
1,2,3
-
ALL
E
Correct answer
Explanation
CSRF (Cross-Site Request Forgery) requires three key conditions: the attacker must know the target website, the victim must be authenticated to that site, and the victim must be tricked into executing an unwanted action. CSRF does NOT require XSS vulnerability - it exploits the browser's automatic cookie submission mechanism. Options A, B, and C correctly describe these prerequisites, though they contain grammatical errors.
-
CSRF attacks are also known as "Sea Surf",
-
CSRF attacks are also known as Session Riding,
-
CSRF attacks are also known as , Hostile Linking.
-
CSRF attacks are also known as One-Click attack
-
1 and 2
-
All
F
Correct answer
Explanation
CSRF attacks are known by multiple names in security literature: 'Sea Surf' (play on CSRF), 'Session Riding' (because the attacker rides the victim's valid session), 'Hostile Linking' (malicious links that exploit authentication), and 'One-Click attack' (can be triggered with a single click). All four names refer to the same vulnerability.
-
Only accepting POST requests
-
Using a secret cookie
-
Both
-
None of the above
D
Correct answer
Explanation
Accepting only POST requests is not effective CSRF prevention because CSRF can trigger POST requests via HTML forms. Secret cookies alone don't prevent CSRF because the browser automatically sends cookies with requests. Effective CSRF prevention requires Anti-CSRF tokens (unique, unpredictable, validated by server) or SameSite cookie attributes (restrict cookie cross-site behavior).
-
Butter worm
-
Cheese worm
-
Nachia worm
-
Blaster worm
B
Correct answer
Explanation
The Cheese Worm was an internet worm that specifically targeted Linux systems in 2001. It exploited vulnerabilities in Linux services and was named for its unusual behavior of leaving a 'cheese' marker file. Option B is correct. Blaster worm targeted Windows, Nachi/Welchia was a Windows worm that tried to patch Blaster, and Butter worm is fictional.
-
Looksky worm
-
Warhol worm
-
Klez
-
Sober
A,C,D
Correct answer
Explanation
Looksky, Klez, and Sober are all well-known email worms that propagate through infected email attachments or mass-mailing techniques. Warhol worm was a theoretical worm design concept focused on rapid propagation using a scanning strategy, not email-based distribution.
-
Samy worm
-
Bom Sabado
-
SQL Slammer
-
Sober worm
A,B
Correct answer
Explanation
Samy worm and Bom Sabado are both XSS (Cross-Site Scripting) worms that spread through web applications by injecting malicious JavaScript. Samy worm targeted MySpace, while Bom Sabado affected Orkut. SQL Slammer is a SQL worm targeting database servers, and Sober is an email worm.
-
Group based access control should be implemented to assign permissions to application users
-
Consistent authorization checking should be performed on all application pages
-
A set of all allowable actions should be defined for each user role and all other's denied
-
All failed access authorization requests should be logged to a secure location for review by administrators
C
Correct answer
Explanation
The principle of least privilege means granting only the minimum necessary permissions to users. Defining all allowable actions for each role and denying everything else (deny-by-default) implements this principle correctly. Group-based access (A) is an implementation detail, not the principle itself. Consistent authorization checks (B) is important for security but doesn't define least privilege. Logging failed attempts (D) is an auditing practice, not authorization.
-
Client (Browser)
-
Database
-
Web Application
-
Web Server
A
Correct answer
Explanation
Cross-Site Scripting (XSS) attacks specifically target the client's browser by injecting malicious scripts that execute in the victim's browser context. The attack doesn't directly target the database (B), the web application server-side (C), or the web server infrastructure (D) - those are vulnerable to different types of attacks like SQL injection or server-side code execution.
-
Secure
-
Domain
-
Expires
-
Static
A
Correct answer
Explanation
The Secure cookie flag ensures cookies are only transmitted over encrypted HTTPS connections, preventing them from being sent over insecure HTTP channels. The Domain flag (B) specifies which domains can receive the cookie. The Expires flag (C) sets cookie lifetime. 'Static' (D) is not a valid cookie attribute - this appears to be a distractor.
-
Compromise of users
-
Loss of data integrity
-
Destruction of data
-
None of the above
A
Correct answer
Explanation
The primary risk of XSS is compromise of users - their sessions are hijacked, credentials stolen, or they're redirected to phishing sites. The web application's data integrity (B) isn't directly threatened by XSS. Data destruction (C) requires different vulnerabilities like SQL injection or authentication bypass. 'None of the above' would incorrectly minimize XSS severity.
-
Host Header
-
Cookie
-
Referrer Header
-
None of the above
D
Correct answer
Explanation
ALL user-supplied input requires validation. Host Headers (A) can be used for cache poisoning or injection attacks. Cookies (B) contain user data that attackers can manipulate. Referrer Headers (C) can contain malicious URLs or scripts. Therefore 'None of the above' (D) is correct - there is no user input that can be safely trusted without validation.
-
Java
-
ASP.Net
-
Perl
-
All of the above
D
Correct answer
Explanation
Cross-Site Scripting is a vulnerability that affects any web application technology, not specific languages. Java, ASP.NET, Perl, PHP, Python, Ruby, and JavaScript-based frameworks can all be vulnerable if they improperly handle user input and render it without proper sanitization. The vulnerability is in how the application processes output, not the language itself.
-
Data is validated against a list of values that are known to be valid
-
Data is validated against a list of values that are known to be invalid
-
Both of the above
-
None of the above
A
Correct answer
Explanation
White list validation means checking input against a list of known valid values and rejecting anything else (deny-by-default). Black list validation (B) checks against known bad values but allows everything else, which is less secure. White listing is the secure approach because it's a closed set - anything not explicitly permitted is rejected.
-
Cross-Site Scripting
-
Buffer over flows
-
Command injection
-
Path traversal attack
A
Correct answer
Explanation
Cross-Site Scripting involves injecting malicious code into links or content from an apparently trustworthy source, exploiting the user's trust. Buffer overflows (B) are memory corruption vulnerabilities. Command injection (C) executes system commands directly. Path traversal (D) accesses files outside the web root. Only XSS involves the deceptive link characteristic.