Sample question 1 — Attacks and Exploits
A web application reflects user-supplied text into the page, and a tester wants to prove that a script can run in another user's browser. The tester must show the client a repeatable, minimal proof of the flaw. Which test should the tester perform to demonstrate the issue?
- A. Send the request with a script payload and observe it execute in the browser.
- B. Overload the login form with many requests until the service stops.
- C. Read the application's source code from the public repository.
- D. Guess database table names from error messages the server returns.
Answer: A. Option A is correct because sending a script payload that the page reflects and the browser runs is a minimal, repeatable proof of the cross-site scripting flaw. Option B causes an outage rather than showing script execution. Option C reads code but does not demonstrate the flaw in the running application. Option D probes the database, which is a different class of issue.
