Cybersecurity and Vulnerabilities

Comprehensive quiz covering software vulnerabilities, cryptographic algorithms, web security, malware concepts, and security tools

31 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

How to implement authentication via web.config?

  1. Include the authentication element.
  2. Include the authorization element.
  3. Include the identity element.
  4. Include the deny element.
Question 2 Multiple Choice (Multiple Answers)

Which of the following vulnerability can not be handled by Input Validation?

  1. Cross site Scripting
  2. Injection flaws
  3. Privilege Escalation
  4. None of the above
Question 3 Multiple Choice (Multiple Answers)

Which validation can be bypassed easily?

  1. Server side Validation
  2. Client side Validation
  3. None of the above
  4. Both 1 and 2
Question 4 Multiple Choice (Multiple Answers)

Allowing user input to control paths used in file system operations may results in----

  1. Privilege Escalations
  2. Path traversal Attack
  3. Cross Site Scripting
  4. Buffer overflow
Question 5 Multiple Choice (Multiple Answers)

What is a Log File.

  1. an ASCII file that contains an entry for each user
  2. File which is created and maintained by a server of activity performed by it.
  3. short python program that prints the list of all files inside the current directory
  4. File which is created and maintained by the operating system
Question 6 Multiple Choice (Multiple Answers)

HTTP Vs HTTPS

  1. uses different ports
  2. HTTPS is insure while HTTP is secure
  3. HTTPS is designed to withstand such attacks and is secure.
  4. Both 1 and 3
  5. Both 2 and 3
Question 7 Multiple Choice (Single Answer)

As a preventive measure what needs to be done while accessing the Database?

  1. Use of dynamic Query with System Privilege Account
  2. Use of Prepared Statements
  3. Use Least Privilege Account
  4. Both 1 and 3
  5. Both 2 and 3
Question 8 Multiple Choice (Single Answer)

How many types of Privilege Escalations can happen in the Web Applications?

  1. One
  2. Two
  3. Three
  4. Four
Question 9 Multiple Choice (Single Answer)

What can be the Best Preventive measures against different vulnerabilities?

  1. Firewall
  2. Input Validation
  3. Updated Antivirus
  4. Extension check for file
Question 10 Multiple Choice (Single Answer)

Which of the following vulnerability can not be handled by Input Validation?

  1. Cross site Scripting
  2. Injection flaws
  3. Privilege Escalation
  4. None of the above
Question 11 Multiple Choice (Single Answer)

Which validation can be bypassed easily?

  1. Server side Validation
  2. Client side Validation
  3. None of the above
  4. Both 1 and 2
Question 12 Multiple Choice (Single Answer)

Allowing user input to control paths used in file system operations may results in----

  1. Privilege Escalations
  2. Path traversal Attack
  3. Cross Site Scripting
  4. Buffer overflow
Question 13 Multiple Choice (Single Answer)

What is a Log File.

  1. an ASCII file that contains an entry for each user
  2. File which is created and maintained by a server of activity performed by it
  3. short python program that prints the list of all files inside the current directory
  4. File which is created and maintained by the operating system
Question 14 Multiple Choice (Single Answer)

HTTP Vs HTTPS

  1. uses different ports
  2. HTTPS is insure while HTTP is secure
  3. HTTPS is designed to withstand such attacks and is secure.
  4. Both 1 and 3
  5. Both 2 and 3
Question 15 Multiple Choice (Single Answer)

Cookie is—

  1. stored on Server
  2. executable text
  3. used for authentication
  4. all of the above
Question 16 Multiple Choice (Single Answer)

It is 802.11 network detector, packet sniffer, and intrusion detection system which work passively.

  1. Kismet
  2. Nmap
  3. Crackspider
  4. John the Ripper
Question 17 Multiple Choice (Single Answer)

The first virus that used polymorphic engine to mutate itself to avoid detection by Anti-Virus but keep the base algorithm same is

  1. Virut
  2. Morph
  3. 1260
  4. Timid Virus
Question 18 Multiple Choice (Single Answer)

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

  1. Rootkit
  2. Denial of Service
  3. Zero Day
  4. Worm
Question 19 Multiple Choice (Single Answer)

A technique where in a hacker masquerades a fake website to look like the original one to obtain sensitive information from a victim

  1. Keylogging
  2. Backdoor
  3. Phishing
  4. Masquerading
Question 20 Multiple Choice (Single Answer)

A variant of computer malware whose name was influenced by Greek Mythology

  1. Chimera
  2. Trojan
  3. Hercules
  4. Hydra
Question 21 Multiple Choice (Multiple Answers)

Pick Odd One Out :

  1. AES
  2. DES
  3. RSA
  4. MARS
Question 22 Multiple Choice (Multiple Answers)

Which of the Following uses Symetric Metrix to Encrypt data

  1. Blow Fish
  2. Two Fish
  3. Rijindale
  4. Caesar
Question 23 Multiple Choice (Single Answer)

Which of the below Algorithm is the strongest in using cariable key mechanism for Encyption

  1. Mars
  2. Serpent
  3. Twofish
  4. Des
Question 24 Multiple Choice (Single Answer)

How many versions does a DES algorithm have

  1. 5
  2. 2
  3. 9
  4. 13
Question 25 Multiple Choice (Single Answer)

What is the Vulnerability of AES Encryption

  1. Brute force Attack
  2. Variable Key Attack
  3. Round Key Analysis
  4. Plain Text Attack
Question 26 Multiple Choice (Single Answer)

How many Standard versions of AES algorithm are available

  1. 1
  2. 2
  3. 3
  4. 4
Question 27 Multiple Choice (Single Answer)

How do you fix the unbounded string copy in the following code? char fname[20]; /* 1 / cout << “Enter First Name:”; / 2 / cin >> fname ; / 3 */

  1. Replace cin call in line 3 with gets() function
  2. The length of input from cin cannot be limited. Use a larger array for fname
  3. Use cin.width[20] before line 3
  4. Use cin.size[19] before line 3
Question 28 Multiple Choice (Single Answer)

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 */ } }

  1. No vulnerabilities are present
  2. Line 1 should only use malloc(inputsize)
  3. Line 2 should be for (i=0; i<=n, i++)
  4. Line 1 should use calloc() instead of malloc()
Question 29 Multiple Choice (Single Answer)

What is the vulnerability in this code? char output[20]; /* Assume data is a character array with value %200d asdf */ sprintf(output, data);

  1. Buffer overflow
  2. Off by one error
  3. Format string vulnerability
  4. No vulnerabilities are present in this code
Question 30 Multiple Choice (Single Answer)

What is the vulnerability in this code? int main(int argc, char * argv[]) { printf (argv[1]); }

  1. Buffer overflow
  2. Off by one error
  3. Format string vulnerability
  4. No vulnerabilities are present in this code
Question 31 Multiple Choice (Single Answer)

What is the possible vulnerability in this code? unsigned int total, userinput1, userinput2; userinput1 = receiveInput(); userinput2 = receiveInput(); total = userinput1 + userinput2;

  1. Integer overflow
  2. Buffer overflow
  3. Stack overflow
  4. Data type mismatch