` into a p…","item":"https://courseiva.com/questions/comptia/security-plus/a-customer-enters-alert-test-into-a-public-forum-signature-field"}]},{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"A customer enters `` into a public forum signature field. Later, other users who view that signature see the script execute in their browsers. What attack is this?","text":"A customer enters `` into a public forum signature field. Later, other users who view that signature see the script execute in their browsers. What attack is this?","answerCount":4,"acceptedAnswer":{"@type":"Answer","text":"Cross-site scripting This is cross-site scripting because user-supplied script code is being stored and then executed in other users' browsers when they load the page. The attack abuses the web application’s failure to sanitize or encode output properly. In operational terms, the web server becomes the delivery mechanism for malicious client-side code. Common defenses include output encoding, input validation, and content security controls.\r\n\r\nWhy others are wrong: SQL injection changes how the backend database query behaves, not how a browser renders script. Session replay involves reusing a captured token or session artifact, which is different from injecting script into page content. Directory traversal targets file paths and server-side file access, not browser execution."}}},{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What does this SY0-701 question test?","acceptedAnswer":{"@type":"Answer","text":"Static NAT maps one inside address to one outside address."}},{"@type":"Question","name":"What is the correct answer to this question?","acceptedAnswer":{"@type":"Answer","text":"The correct answer is: Cross-site scripting — This is cross-site scripting because user-supplied script code is being stored and then executed in other users' browsers when they load the page. The attack abuses the web application’s failure to sanitize or encode output properly. In operational terms, the web server becomes the delivery mechanism for malicious client-side code. Common defenses include output encoding, input validation, and content security controls.\r\n\r\nWhy others are wrong: SQL injection changes how the backend database query behaves, not how a browser renders script. Session replay involves reusing a captured token or session artifact, which is different from injecting script into page content. Directory traversal targets file paths and server-side file access, not browser execution."}},{"@type":"Question","name":"What should I do if I get this SY0-701 question wrong?","acceptedAnswer":{"@type":"Answer","text":"Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting."}}]}]
easymultiple choiceObjective-mapped

A customer enters `<script>alert('test')</script>` into a public forum signature field. Later, other users who view that signature see the script execute in their browsers. What attack is this?

Question 1easymultiple choice
Full question →

A customer enters `<script>alert('test')</script>` into a public forum signature field. Later, other users who view that signature see the script execute in their browsers. What attack is this?

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

Distractor review

SQL injection

SQL injection targets database queries, not browser-side script execution in a forum page.

B

Best answer

Cross-site scripting

Cross-site scripting stores or reflects script code that executes in another user's browser.

C

Distractor review

Session replay

Session replay reuses captured session data, but the symptom here is script execution in the browser.

D

Distractor review

Directory traversal

Directory traversal abuses path handling to reach files, which does not match script injection in a web page.

Common exam trap

Common exam trap: NAT rules depend on direction and matching traffic

NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.

Technical deep dive

How to think about this question

NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.

KKey Concepts to Remember

  • Static NAT maps one inside address to one outside address.
  • PAT allows many inside hosts to share one public address using ports.
  • Inside local and inside global describe the private and translated addresses.
  • NAT ACLs identify traffic for translation, not always security filtering.

TExam Day Tips

  • Identify inside and outside interfaces first.
  • Check whether the scenario needs static NAT, dynamic NAT or PAT.
  • Do not confuse NAT matching ACLs with normal packet-filtering intent.

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?

Static NAT maps one inside address to one outside address.

What is the correct answer to this question?

The correct answer is: Cross-site scripting — This is cross-site scripting because user-supplied script code is being stored and then executed in other users' browsers when they load the page. The attack abuses the web application’s failure to sanitize or encode output properly. In operational terms, the web server becomes the delivery mechanism for malicious client-side code. Common defenses include output encoding, input validation, and content security controls. Why others are wrong: SQL injection changes how the backend database query behaves, not how a browser renders script. Session replay involves reusing a captured token or session artifact, which is different from injecting script into page content. Directory traversal targets file paths and server-side file access, not browser execution.

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.