wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Insecure Deserialization Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is the process of converting an object into a format that can be stored or transmitted called?

a)

Encoding

b)

Serialization

c)

Decoding

d)

Deserialization

2.

What is the main risk associated with insecure deserialization?

a)

Data encryption

b)

Data loss

c)

Unauthorized access

d)

Remote code execution

3.

Which function is used in Python to convert an object into a binary format?

a)

pickle.dump()

b)

serialize()

c)

pickle.load()

d)

json.dumps()

4.

What does the PHP unserialize() function do?

a)

Compresses data

b)

Encrypts data

c)

Converts serialized data back to an object

d)

Converts data to JSON

5.

Which of the following is a sign of insecure deserialization vulnerability?

a)

Use of encryption

b)

User-controlled input

c)

Data validation

d)

Secure coding practices

6.

What is the format of PHP serialized data?

a)

Starts with \x04

b)

Begins with \x80\x02

c)

Starts with ACED 0005

d)

Starts with O: or a:

7.

Which magic method is called when an object is destroyed in PHP?

a)

__destruct()

b)

__construct()

c)

__serialize()

d)

__wakeup()

8.

What is the purpose of the __wakeup() method in PHP?

a)

To serialize an object

b)

To initialize an object

c)

To clean up resources

d)

To unserialize an object

9.

What is a common technique for exploiting insecure deserialization?

a)

Input validation

b)

Data encryption

c)

Modifying serialized data

d)

Data compression

10.

Which of the following is a method to identify serialized data?

a)

Use of encryption

b)

Check for magic numbers

c)

Data validation

d)

Input sanitization

11.

What can an attacker achieve through object injection?

a)

Input validation

b)

Data compression

c)

Manipulation of internal objects

d)

Data encryption

12.

What is the first step in identifying vulnerabilities in code related to deserialization?

a)

Check for user input

b)

Check for encryption

c)

Check for data validation

d)

Check for logging

13.

What is the format of Java serialized data?

a)

Starts with O: or a:

b)

Starts with \x04

c)

Starts with ACED 0005

d)

Begins with \x80\x02

14.

What is a common sign of insecure deserialization?

a)

User-controlled input

b)

Data validation

c)

Data encryption

d)

Use of secure coding practices

15.

What is the goal of injecting arbitrary objects in insecure deserialization?

a)

To encrypt data

b)

To trigger unintended functionality

c)

To validate input

d)

To compress data