Question 4 of 1,152
Threats, Vulnerabilities, and MitigationshardMultiple ChoiceObjective-mapped

Quick Answer

The answer is insecure deserialization, because the scenario demonstrates how tampering with serialized objects leads to RCE or privilege escalation when untrusted data is reconstructed into server-side objects. This attack pattern exploits the lack of integrity checks on serialized input—here, a Base64-encoded Java object—allowing an attacker to modify a field like `role=user` to `role=admin`, which causes the application to deserialize a different class and expose internal pages. On the Security+ SY0-701 exam, this tests your understanding of OWASP Top 10 risks and the principle of never deserializing data from untrusted sources without validation or signing. A common trap is confusing this with a buffer overflow or SQL injection, but the key clue is the reconstruction of a different class from modified serialized bytes. Memory tip: “If you can change a role by tweaking bytes, think deserialization—no integrity, no trust.”

SY0-701 Threats, Vulnerabilities, and Mitigations Practice Question

This SY0-701 practice question tests your understanding of threats, vulnerabilities, and mitigations. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A Java web service accepts a Base64-encoded `profile` object from the browser. During testing, changing a serialized field from `role=user` to `role=admin` causes a deserialization error unless the original signed blob is reused. When a captured valid blob is modified only slightly, the application reconstructs a different class and then exposes an internal admin page. Which attack pattern is most likely?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "most likely"

    Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

Question 1hardmultiple choice
Read the full NAT/PAT explanation →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Insecure deserialization, because untrusted serialized data is being reconstructed into server-side objects.

The correct answer is A because the scenario describes a classic insecure deserialization attack. The Java web service accepts a Base64-encoded serialized object from the browser and reconstructs it into server-side objects without integrity verification. When the attacker modifies a serialized field (role=user to role=admin), the application deserializes the tampered data, which causes a deserialization error unless the original signed blob is reused, but a slight modification reconstructs a different class and exposes an internal admin page. This directly matches the OWASP Top 10 insecure deserialization pattern where untrusted data is deserialized, leading to object injection and privilege escalation.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Insecure deserialization, because untrusted serialized data is being reconstructed into server-side objects.

    Why this is correct

    Insecure deserialization is the best fit because the application accepts a serialized object from an untrusted source and turns it back into live server-side data. The fact that a small modification changes object behavior shows the server is trusting attacker-controlled serialized content. That can lead to authorization bypass, object confusion, or even code execution depending on the framework and validation controls.

    Clue confirmation

    The clue word "most likely" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • SQL injection, because the attacker is changing a field to access a different page.

    Why it's wrong here

    SQL injection involves manipulating a database query, usually through crafted input that changes SQL logic. This scenario never shows a database query or SQL syntax.

  • Cross-site request forgery, because the browser is sending a forged request to the application.

    Why it's wrong here

    CSRF abuses an authenticated browser session to submit an unwanted request. Here, the core issue is reconstructing attacker-influenced serialized objects, not tricking a browser into making a state-changing request.

  • Cross-site scripting, because the modified object exposes an internal admin page.

    Why it's wrong here

    XSS executes attacker-controlled script in the victim's browser. The problem here happens during server-side object reconstruction, before any browser script execution would matter.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may confuse the symptom (accessing an admin page) with a web-based attack like XSS or CSRF, but the root cause is the insecure deserialization of untrusted serialized data, not client-side script injection or request forgery.

Trap categories for this question

  • Command / output trap

    SQL injection involves manipulating a database query, usually through crafted input that changes SQL logic. This scenario never shows a database query or SQL syntax.

  • Scenario analysis trap

    SQL injection involves manipulating a database query, usually through crafted input that changes SQL logic. This scenario never shows a database query or SQL syntax.

Detailed technical explanation

How to think about this question

In Java, serialization uses the `ObjectInputStream.readObject()` method, which reconstructs objects from byte streams without validating the class or field integrity. An attacker can craft a serialized blob that, when deserialized, instantiates a class with elevated privileges (e.g., `AdminPage`) if the class is available on the classpath. Real-world exploits like the Apache Commons Collections gadget chain leverage this to achieve remote code execution by chaining deserialization of specific classes.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A security analyst at a medium-sized enterprise encounters this scenario during an investigation or architecture review. The correct answer reflects best practice for the specific threat or control described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Security exam questions test whether you can match controls to threats in context — not just recall definitions.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related SY0-701 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SY0-701 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SY0-701 question test?

Threats, Vulnerabilities, and Mitigations — This question tests Threats, Vulnerabilities, and Mitigations — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Insecure deserialization, because untrusted serialized data is being reconstructed into server-side objects. — The correct answer is A because the scenario describes a classic insecure deserialization attack. The Java web service accepts a Base64-encoded serialized object from the browser and reconstructs it into server-side objects without integrity verification. When the attacker modifies a serialized field (role=user to role=admin), the application deserializes the tampered data, which causes a deserialization error unless the original signed blob is reused, but a slight modification reconstructs a different class and exposes an internal admin page. This directly matches the OWASP Top 10 insecure deserialization pattern where untrusted data is deserialized, leading to object injection and privilege escalation.

What should I do if I get this SY0-701 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on SY0-701

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A Java-based internal portal accepts a serialized object during profile import. After a recent test upload, the server made outbound LDAP calls and created a new local account. What attack pattern best explains this behavior?

medium
  • A.SQL injection, because the attacker likely altered a database query.
  • B.Cross-site scripting, because the attacker could have injected script into the portal.
  • C.Insecure deserialization, because a crafted object triggered unexpected server-side actions.
  • D.CSRF, because the attacker may have forced an administrator to submit a form.

Why C: Option C is correct because the scenario describes a Java application accepting a serialized object during profile import, which is a classic vector for insecure deserialization attacks. By crafting a malicious serialized object, an attacker can trigger arbitrary code execution on the server, leading to outbound LDAP calls and local account creation—actions that are not part of normal profile import logic. This attack exploits the trust placed in serialized data without proper validation or integrity checks.

Keep practising

More SY0-701 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SY0-701 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SY0-701 exam.