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

Multiple choice technology security
  1. Compromise of users

  2. Loss of data integrity

  3. Destruction of data

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The primary risk of XSS is user compromise - attackers can steal session cookies, credentials, or perform actions on behalf of victims. While data integrity and destruction are potential consequences, the core threat is compromising user accounts and sessions through script injection.

Multiple choice technology security
  1. Equivalent to normal users

  2. Less than those of normal users as all administrators are trustworthy

  3. No authentication is required for administrators

  4. Greater than those of normal users

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Administrator accounts require stronger authentication than normal users because they have elevated privileges that can cause greater damage if compromised. Trust assumptions are security vulnerabilities - admins must face stricter access controls.

Multiple choice technology security
  1. Cannot be treated as a secure practice

  2. Is a good way to hide passwords from hackers

  3. Is perfectly fine for internal applications

  4. Is perfectly fine for external user facing applications

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Hard coding credentials means embedding passwords or API keys directly in source code, which is a serious security vulnerability. Credentials exposed in code can be easily discovered through version control history, decompilation, or unauthorized access to the repository. Options B, C, and D are incorrect because hardcoding credentials is never secure, regardless of application type or intended audience.

Multiple choice technology security
  1. Java

  2. ASP.Net

  3. Perl

  4. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

To answer this question, let's go through each option to understand which languages are vulnerable to Cross-Site Scripting (XSS) attacks:

Option A) Java - Java itself is not vulnerable to XSS attacks. However, if a Java application uses web technologies like servlets, JSP, or JavaServer Faces (JSF), then the vulnerabilities in these technologies can lead to XSS attacks. Therefore, Java can be vulnerable to XSS attacks indirectly.

Option B) ASP.Net - Similar to Java, ASP.Net itself is not vulnerable to XSS attacks. However, if an ASP.Net application does not properly handle user input or output encoding, it can be vulnerable to XSS attacks. Therefore, ASP.Net can be vulnerable to XSS attacks indirectly.

Option C) Perl - Perl itself is not vulnerable to XSS attacks. However, if a Perl application does not properly handle user input or output encoding, it can be vulnerable to XSS attacks. Therefore, Perl can be vulnerable to XSS attacks indirectly.

Option D) All of the above - This option is correct. While the languages themselves (Java, ASP.Net, and Perl) are not directly vulnerable to XSS attacks, the vulnerabilities arise when these languages are used in web applications and proper security measures are not implemented. Therefore, all of the above languages can be vulnerable to XSS attacks indirectly.

The correct answer is D) All of the above. These languages can be vulnerable to XSS attacks when used in web applications that do not handle user input or output encoding properly.

Multiple choice technology security
  1. Cross-Site Scripting

  2. Buffer over flows

  3. Command injection

  4. Path traversal attack

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Cross-Site Scripting (XSS) attacks occur when an attacker injects malicious scripts into content from a seemingly trusted source, like a compromised link or reflected input. The script executes in the victim's browser context. Buffer overflows and command injection are different vulnerability classes that don't involve malicious links.

Multiple choice technology security
  1. Escape the invalid characters and continue processing the input data

  2. Accept the input data without modifying it and log the validation error

  3. Delete the invalid characters and continue processing the input data

  4. Reject the entire input data and send an error message back to the user

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The most secure response to invalid input is complete rejection (option D) because sanitization (escaping or deleting characters) can be bypassed and attackers might craft malicious payloads that survive filtering. Simply accepting invalid input (B) is dangerous, and partial processing after modification (A, C) risks introducing vulnerabilities.

Multiple choice technology security
  1. Hidden tags

  2. Query Strings

  3. Header

  4. Cookies

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Web servers log query strings (the portion after ? in a URL) as part of the GET request line. Headers (C) and cookies (D) are logged separately if logging is configured, but query strings are intrinsic to the GET request itself. Hidden tags (A) are form elements, not URL components.

Multiple choice technology security
  1. Hashing the password twice

  2. Encrypting the password using the private key

  3. Use an encryption algorithm you wrote your self so no one knows how it works

  4. Salting the hash

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Salting (adding random data before hashing) prevents dictionary and rainbow table attacks by ensuring identical passwords produce different hashes. Hashing twice (A) adds negligible security. Private key encryption (B) isn't applicable to password storage. Custom encryption (C) violates Kerckhoffs's principle and is rarely secure.

Multiple choice technology security
  1. Can be done as it as an internal IP

  2. Can be done for internet facing servers as there are no chances of IP conflicts

  3. Is a good security practice

  4. Is a bad security practice

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Hard-coded IP access control is fundamentally insecure because IP addresses can be spoofed, are dynamic (especially for ISPs), and create inflexible, brittle security. Option D correctly identifies this as bad practice. Internal IPs (A) and IP conflicts (B) aren't the core issues.

Multiple choice technology security
  1. Unvalidated input

  2. Lack of authentication

  3. Improper error handing

  4. Insecure configuration management

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Unvalidated input (option A) is the root cause of all listed vulnerabilities. Without proper validation, user-supplied data can overflow buffers, include scripts, inject SQL commands, or exploit format string specifiers. The other options (authentication, error handling, configuration) are important but not the common thread.

Multiple choice technology security
  1. Commercial applications

  2. Custom built applications

  3. In house developed applications

  4. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Configuration Management Security principles are universal (option D). Whether commercial, custom-built, or in-house, all applications need secure defaults, patch management, and proper configuration. There's no exception based on origin or deployment model.

Multiple choice technology security
  1. Data Validation

  2. Secure Cookies

  3. Encryption

  4. Comprehensive exception handling

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Data validation (option A) helps prevent SQL injection by ensuring inputs conform to expected patterns before being used in queries. Secure cookies (B) protect session tokens, not query integrity. Encryption (C) protects data at rest, not injection. Exception handling (D) manages errors but doesn't prevent injection.

Multiple choice technology security
  1. Session ID

  2. Account Privileges

  3. UserName

  4. Password

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Cookies should store a Session ID - an identifier that references session data on the server, not the actual sensitive data. Account privileges, usernames, and passwords should never be stored directly in cookies as they would be exposed to the client and vulnerable to interception or tampering.

Multiple choice technology security
  1. Ensure that the data has not been tampered with

  2. Ensure that the session is valid

  3. Ensure that the user is valid

  4. All of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Data hashing ensures integrity - it verifies that data has not been altered by generating a fixed-size digest that changes if any bit of the original data changes. Hashing does not validate sessions (authentication) or users (authorization) - those are separate security mechanisms.