Questions Related to security

Multiple choice technology security
  1. Since the file name is hard coded, fopen() will fail if the file already exists

  2. 0600 is not a secure option. The parameter 0600 should be changed to 0666

  3. Attackers can exploit by creating a symboling link /tmp/cache_data that points to a system file

  4. Attackers can exploit the application's cache by writing directly to /tmp/cache_data

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology security
  1. Overwriting freed memory is a security vulnerability

  2. Depends on the application and how important “somedata” is

  3. This will result in a buffer overflow since the freed memory location cannot handle 8 characters of data “somedata”

  4. strcpy() will fail as it cannot write to already freed memory, and the application will crash

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology security
  1. Cross Site Scripting

  2. SQL Injection

  3. Improper Resource Release

  4. Option 1 AND Option 2

  5. Option 1 AND Option 2 AND Option 3

  6. Option 2 AND Option 3

Reveal answer Fill a bubble to check yourself
E Correct answer
Multiple choice technology security
  1. Line # 12

  2. Line # 9

  3. Line # 17

  4. Line # 8

  5. Line # 14, 18 & 19

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology security
  1. Request Redirection is vulnerable and not a good practice

  2. Exception is not logged

  3. Input parameter “language” is not validated

  4. Option 1 AND Option 2

  5. Option 1 AND Option 3

  6. Option 2 AND Option 3

Reveal answer Fill a bubble to check yourself
E Correct answer
Multiple choice technology security
  1. Line 5

  2. Line 4

  3. Line 11

  4. Line 18

Reveal answer Fill a bubble to check yourself
D Correct answer