Computer Knowledge ยท General Awareness
Information Security
4,143 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
-
Unvalidated input
-
Lack of authentication
-
Improper error handing
-
Insecure configuration management
A
Correct answer
Explanation
All these vulnerabilities share a root cause: insufficient validation or sanitization of untrusted input. When user input is not properly validated before use, attackers can manipulate it to trigger buffer overflows, inject malicious scripts or SQL commands, or exploit format string vulnerabilities.
-
Commercial applications
-
Custom built applications
-
In house developed applications
-
All of the above
D
Correct answer
Explanation
Secure configuration management is essential for all types of applications - commercial off-the-shelf software, custom-built applications, and in-house developments. All software requires proper hardening, patching, and secure configuration.
-
Encrypted data itself
-
Asymmetric private key
-
Symmetric key
-
Asymmetric public key
D
Correct answer
Explanation
In asymmetric cryptography, the public key is designed to be shared freely without compromising security. It can only be used to encrypt data or verify signatures - decryption requires the private key which must be kept secret. Encrypted data, private keys, and symmetric keys must all be protected.
-
Data Validation
-
Secure Cookies
-
Encryption
-
Comprehensive exception handling
A
Correct answer
Explanation
Data validation ensures that user input conforms to expected formats before being used in database queries, making it harder for attackers to inject malicious SQL code. Secure cookies, encryption, and exception handling are important security measures but they don't directly prevent SQL injection attacks. SQL injection specifically exploits unvalidated input concatenated into SQL statements.
-
Session ID
-
Account Privileges
-
UserName
-
Password
A
Correct answer
Explanation
Cookies should only contain a session identifier that references server-side session data. Storing sensitive information like passwords or account privileges in cookies exposes them to theft and manipulation. Usernames in cookies can also be used for session hijacking and should be avoided - the session ID alone is sufficient.
-
Ensure that the data has not been tampered with
-
Ensure that the session is valid
-
Ensure that the user is valid
-
All of the above
A
Correct answer
Explanation
Hashing creates a fixed-size digital fingerprint that uniquely represents data. If even a single bit changes, the hash will be completely different, making it an excellent mechanism for detecting data tampering. Session validity and user authentication require different mechanisms like expiration tokens and credential verification.
-
Cross Site Scripting
-
Phishing
-
SQL Injection
-
HTTP Response Splitting
D
Correct answer
Explanation
CR (carriage return, %0D or %00 in some encodings) and LF (line feed, %0A) are line break characters used to separate HTTP headers. Attackers inject these characters into input to split the HTTP response and inject arbitrary headers or even content. This is the signature of HTTP Response Splitting (also called CRLF injection).
-
The configuration management
-
The session management
-
The change management process
-
The authorization process
D
Correct answer
Explanation
Forced browsing (or path traversal) attacks succeed when the application fails to check if a user is authorized to access a specific URL or resource. The attacker guesses or enumerates URLs and accesses them directly without proper permission checks. This is fundamentally an authorization failure - the application authenticated the user but didn't verify their right to access that specific resource.
-
A mechanism that requires only a password
-
Basic authentication
-
2/3 factor authentication
-
A mechanism with no lock-out, to prevent accidentally denying legitimate access
C
Correct answer
Explanation
Administrative pages offer highly privileged access and must be protected with strong multi-factor (2/3 factor) authentication to secure them against credential harvesting. Simple single-factor passwords, basic HTTP authentication, or disabling account lockouts introduce severe vulnerabilities, leaving administrative interfaces exposed to brute-force and credential stuffing attacks.
-
Sent to the user in a hidden field so that tech support can retrieve the information later
-
Destroyed if it occurs to minimize the chances that this information might be inadvertently disclosed
-
Logged on the server side
-
A and C
C
Correct answer
Explanation
Detailed error messages like stack traces should be logged securely on the server for debugging, while users receive generic error messages. Storing sensitive debugging info in hidden fields (option A) exposes it to anyone viewing the page source. Simply destroying the information (option B) loses valuable debugging data needed to fix the underlying problem.
-
An administrative interface to an application
-
When two users access each other's information
-
A loop hole within an application that allows users to bypass the standard security flow by way of a secret token or identifier
-
The connection between the application and the database
C
Correct answer
Explanation
A backdoor is a hidden method that bypasses normal authentication to gain unauthorized access. Option C correctly defines it as a security loophole using secret tokens or identifiers. Options A, B, and D describe legitimate features or connections, not security bypass mechanisms.
-
A backdoor
-
An access control vulnerability
-
A buffer over flow
-
A SQL injection vulnerability
A
Correct answer
Explanation
Hardcoded credentials that bypass normal authentication are a backdoor because they provide secret access without legitimate credentials. This is different from access control vulnerabilities (B) which are flaws in permission logic. Buffer overflow (C) and SQL injection (D) are completely different vulnerability types involving memory corruption and query manipulation.
-
Servers are generally configured in a secure manner when they are first installed
-
It is impossible to securely configure a web server
-
Out of the box settings normally meet what is called minimum baseline security standards
-
The default settings on web servers are not generally secure
D
Correct answer
Explanation
Web servers ship with default settings optimized for ease of use, not security. They often have unnecessary services enabled, default credentials, or verbose error messages. Options A, B, and C are incorrect because servers require deliberate hardening after installation to be secure.
-
Filtering data with a default deny regular expression
-
Running the application with the least privilege necessary
-
Client side data validation
-
Retrieving data from database using pre-compiled stored procedures
C
Correct answer
Explanation
Client-side validation can be bypassed by manipulating requests or disabling JavaScript. Security controls must enforce rules on the server where attackers cannot tamper with them. Options A (default-deny filtering), B (least privilege), and D (stored procedures) are valid security practices.
-
The web server is not patched
-
The attack entices a user to perform a certain action
-
Users do not patch their machines
-
Users share email accounts
B
Correct answer
Explanation
Phishing is social engineering that tricks users into performing actions like clicking malicious links or entering credentials. It targets human behavior, not technical vulnerabilities. Options A and C describe technical exploitation, while D is unrelated to phishing success.