Cybersecurity and Vulnerabilities
Comprehensive quiz covering software vulnerabilities, cryptographic algorithms, web security, malware concepts, and security tools
Questions
How to implement authentication via web.config?
- Include the authentication element.
- Include the authorization element.
- Include the identity element.
- Include the deny element.
Which of the following vulnerability can not be handled by Input Validation?
- Cross site Scripting
- Injection flaws
- Privilege Escalation
- None of the above
Which validation can be bypassed easily?
- Server side Validation
- Client side Validation
- None of the above
- Both 1 and 2
Allowing user input to control paths used in file system operations may results in----
- Privilege Escalations
- Path traversal Attack
- Cross Site Scripting
- Buffer overflow
What is a Log File.
- an ASCII file that contains an entry for each user
- File which is created and maintained by a server of activity performed by it.
- short python program that prints the list of all files inside the current directory
- File which is created and maintained by the operating system
HTTP Vs HTTPS
- uses different ports
- HTTPS is insure while HTTP is secure
- HTTPS is designed to withstand such attacks and is secure.
- Both 1 and 3
- Both 2 and 3
As a preventive measure what needs to be done while accessing the Database?
- Use of dynamic Query with System Privilege Account
- Use of Prepared Statements
- Use Least Privilege Account
- Both 1 and 3
- Both 2 and 3
How many types of Privilege Escalations can happen in the Web Applications?
- One
- Two
- Three
- Four
What can be the Best Preventive measures against different vulnerabilities?
- Firewall
- Input Validation
- Updated Antivirus
- Extension check for file
Which of the following vulnerability can not be handled by Input Validation?
- Cross site Scripting
- Injection flaws
- Privilege Escalation
- None of the above
Which validation can be bypassed easily?
- Server side Validation
- Client side Validation
- None of the above
- Both 1 and 2
Allowing user input to control paths used in file system operations may results in----
- Privilege Escalations
- Path traversal Attack
- Cross Site Scripting
- Buffer overflow
What is a Log File.
- an ASCII file that contains an entry for each user
- File which is created and maintained by a server of activity performed by it
- short python program that prints the list of all files inside the current directory
- File which is created and maintained by the operating system
HTTP Vs HTTPS
- uses different ports
- HTTPS is insure while HTTP is secure
- HTTPS is designed to withstand such attacks and is secure.
- Both 1 and 3
- Both 2 and 3
Cookie is—
- stored on Server
- executable text
- used for authentication
- all of the above
It is 802.11 network detector, packet sniffer, and intrusion detection system which work passively.
- Kismet
- Nmap
- Crackspider
- John the Ripper
The first virus that used polymorphic engine to mutate itself to avoid detection by Anti-Virus but keep the base algorithm same is
- Virut
- Morph
- 1260
- Timid Virus
A type of computer threat that exploits vulnerabilities in Application that is not yet known to vendor or others and for which a patch is yet to be released
- Rootkit
- Denial of Service
- Zero Day
- Worm
A technique where in a hacker masquerades a fake website to look like the original one to obtain sensitive information from a victim
- Keylogging
- Backdoor
- Phishing
- Masquerading
A variant of computer malware whose name was influenced by Greek Mythology
- Chimera
- Trojan
- Hercules
- Hydra
Pick Odd One Out :
- AES
- DES
- RSA
- MARS
Which of the Following uses Symetric Metrix to Encrypt data
- Blow Fish
- Two Fish
- Rijindale
- Caesar
Which of the below Algorithm is the strongest in using cariable key mechanism for Encyption
- Mars
- Serpent
- Twofish
- Des
How many versions does a DES algorithm have
- 5
- 2
- 9
- 13
What is the Vulnerability of AES Encryption
- Brute force Attack
- Variable Key Attack
- Round Key Analysis
- Plain Text Attack
How many Standard versions of AES algorithm are available
- 1
- 2
- 3
- 4
How do you fix the unbounded string copy in the following code? char fname[20]; /* 1 / cout << “Enter First Name:”; / 2 / cin >> fname ; / 3 */
- Replace cin call in line 3 with gets() function
- The length of input from cin cannot be limited. Use a larger array for fname
- Use cin.width[20] before line 3
- Use cin.size[19] before line 3
Are there any memory issues in the following code? Please assume that variable inputsize has the correct size. int add_num_array(int inputsize, int num) { int newnum = malloc (inputsize * sizeof(int)); / 1 / int i; for (i=0; i<n;i++) { / 2 / newnum[i] += num; / 3 */ } }
- No vulnerabilities are present
- Line 1 should only use malloc(inputsize)
- Line 2 should be for (i=0; i<=n, i++)
- Line 1 should use calloc() instead of malloc()
What is the vulnerability in this code? char output[20]; /* Assume data is a character array with value %200d asdf */ sprintf(output, data);
- Buffer overflow
- Off by one error
- Format string vulnerability
- No vulnerabilities are present in this code
What is the vulnerability in this code? int main(int argc, char * argv[]) { printf (argv[1]); }
- Buffer overflow
- Off by one error
- Format string vulnerability
- No vulnerabilities are present in this code
What is the possible vulnerability in this code? unsigned int total, userinput1, userinput2; userinput1 = receiveInput(); userinput2 = receiveInput(); total = userinput1 + userinput2;
- Integer overflow
- Buffer overflow
- Stack overflow
- Data type mismatch