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
-
Can be done as it as an internal IP
-
Can be done for internet facing servers as there are no chances of IP conflicts
-
Is a good security practice
-
Is a bad security practice
D
Correct answer
Explanation
To solve this question, the user needs to have a basic understanding of access control and network security.
Option A: Can be done as it is an internal IP
- This option is partially correct. Implementing access control based on a hard-coded IP address can be done for internal IPs, since they are less likely to change or conflict with other IPs on the network. However, this alone does not guarantee security, and other measures such as firewalls and intrusion detection systems should also be in place.
Option B: Can be done for internet-facing servers as there are no chances of IP conflicts
- This option is incorrect. Even for internet-facing servers, there are chances of IP conflicts, especially if the server is part of a larger network. Relying solely on hard-coded IP addresses for access control is not a good security practice.
Option C: Is a good security practice
- This option is incorrect. While hard-coding IP addresses for access control can be part of a larger security strategy, it is not a good practice to rely solely on this method. Attackers can spoof IP addresses or gain access to a trusted IP address through various means. A more comprehensive security approach is needed.
Option D: Is a bad security practice
- This option is partially correct. Relying solely on hard-coded IP addresses for access control is not a good security practice, as it is vulnerable to spoofing and other attacks. However, this does not mean that the practice is completely bad. It can be used in conjunction with other security measures, but should not be the only method of access control.
Therefore, the correct answer is:
The Answer is: D. Is a bad security practice
-
Unvalidated input
-
Lack of authentication
-
Improper error handing
-
Insecure configuration management
A
Correct answer
Explanation
These major security vulnerabilities all stem from accepting untrusted user inputs without proper sanitization, validation, or escaping. Proper input validation mitigates the risk of execution or injection.
-
Commercial applications
-
Custom built applications
-
In house developed applications
-
All of the above
D
Correct answer
Explanation
Configuration Management Security principles - version control, change approval, separation of duties, audit trails, and rollback procedures - apply universally across all software types. Whether commercial off-the-shelf, custom-built, or developed in-house, all applications require secure configuration management to prevent unauthorized changes and maintain system integrity.
-
Encrypted data itself
-
Asymmetric private key
-
Symmetric key
-
Asymmetric public key
D
Correct answer
Explanation
In asymmetric cryptography, the public key is designed for distribution and encryption - revealing it doesn't compromise security. Encrypted data itself can be public without weakening the encryption. However, revealing the private key (asymmetric) or symmetric key would allow decryption, breaking confidentiality entirely.
-
Data Validation
-
Secure Cookies
-
Encryption
-
Comprehensive exception handling
A
Correct answer
Explanation
Data validation (input whitelisting, type checking, length limits) is the primary defense against SQL injection - it ensures only expected input reaches the database. Secure cookies prevent theft but not injection, encryption protects data at rest (not query manipulation), and exception handling manages errors rather than preventing injection itself.
-
Session ID
-
Account Privileges
-
UserName
-
Password
A
Correct answer
Explanation
Only the Session ID should be stored in a cookie - it's an opaque reference to server-side session data. Storing privileges, username, or especially passwords in cookies exposes sensitive information to theft (XSS, sniffing, physical access) and violates the principle of storing only identifiers, not authoritative data, on the client.
-
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
Data hashing creates a fixed-size fingerprint that detects tampering - if even one bit changes, the hash will be completely different. Hashing doesn't validate sessions (that's session management), doesn't validate users (that's authentication), and 'all of the above' is incorrect because hashing only addresses integrity, not authenticity or authorization.
-
Cross Site Scripting
-
Phishing
-
SQL Injection
-
HTTP Response Splitting
D
Correct answer
Explanation
CRLF (%00%0A = Carriage Return + Line Feed) injection allows attackers to split HTTP responses by injecting malicious headers or content. This technique (HTTP Response Splitting) can lead to cache poisoning, XSS, or credential theft. XSS attacks inject scripts (not CRLF), phishing is social engineering, and SQL injection targets databases (not HTTP responses).
-
The configuration management
-
The session management
-
The change management process
-
The authorization process
D
Correct answer
Explanation
Forced browsing attacks exploit inadequate authorization checks, allowing attackers to access restricted resources by guessing URLs or manipulating paths. A successful attack indicates the application fails to verify whether the authenticated user has permission to access the requested resource. Configuration, session, and change management are separate concerns.
-
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 interfaces are high-value targets for attackers and require stronger authentication than single-factor password-only mechanisms. Multi-factor authentication (2FA or 3FA) significantly reduces the risk of unauthorized access by requiring multiple independent verification factors. Basic authentication and password-only mechanisms are vulnerable to credential theft and brute force 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
Error messages containing stack traces or implementation details should never be sent to users as they reveal internal application structure to potential attackers. Instead, detailed error information should be logged securely on the server for administrator review. Users should receive generic error messages, while technical details are preserved server-side for troubleshooting and security monitoring.
-
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 of bypassing normal authentication and security controls, typically implemented through a secret token, special URL, or hardcoded credential. It deliberately circumvents the application's standard security flow, often left by developers for support or testing but posing severe security risks if discovered. Administrative interfaces and database connections are legitimate components, not backdoors.
-
A backdoor
-
An access control vulnerability
-
A buffer over flow
-
A SQL injection vulnerability
A
Correct answer
Explanation
Hardcoded credentials that bypass standard authentication are a classic backdoor - they provide an alternative authentication method that wasn't part of the designed security flow. This differs from access control vulnerabilities (which are flaws in the designed controls), buffer overflows (memory corruption), or SQL injection (input validation issues). The defining characteristic is the deliberate, secret authentication path.
-
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 server default configurations prioritize ease of installation and functionality over security. They often include unnecessary features, default credentials, or permissive settings that must be manually hardened for production use.
-
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 easily bypassed by disabling JavaScript, modifying requests, or using tools like proxy servers. Security controls must be implemented on the server where they cannot be tampered with by users.