CISSP practice question · Software Development Security
A web application fetches an image from any URL that a user submits. A tester submits the cloud instance metadata…
A web application fetches an image from any URL that a user submits. A tester submits the cloud instance metadata service address and receives temporary cloud credentials in the response. Which flaw and fix BEST fit?
- ASSRF; allowlist destinations and block internal addresses
- BReflected XSS; encode the URL before showing it to users
- CCSRF; add anti-forgery tokens to the form
- DOpen redirect; warn users before external redirects
Show the answer and explanation
Correct answer: A) SSRF; allowlist destinations and block internal addresses
Server-side request forgery tricks a server into making requests to destinations the attacker chooses, including internal services; destination allowlisting and blocking internal address ranges are the main defenses.
Why each option is right or wrong
- A) Correct. The server made a request on the attacker's behalf to an internal endpoint. Validating destinations against an allowlist, blocking link-local and private ranges, and requiring session tokens for metadata access (such as AWS IMDSv2) reduce the risk.
- B) Incorrect. Reflected XSS runs script in a victim's browser. Here the server itself made a request to an internal service.
- C) Incorrect. CSRF makes a victim's browser send unwanted requests. The tester is acting directly; the problem is the server fetching internal addresses.
- D) Incorrect. An open redirect sends a user's browser to another site. The issue here is a server-side request, not a client redirect.
- Exam domain
- Software Development Security · 10% of CISSP
- Question type
- Multiple choice (one answer)
Related CISSP questions
- A user profile update API binds every field in the submitted JSON directly to the stored user object.Software Development Security
- A mobile app's API returns complete customer records, including national ID numbers and internal account notes.Software Development Security
- A C service computes a buffer size as count multiplied by record size, using 32-bit unsigned integers, with count taken…Software Development Security
- A team is designing password storage for a new web application. Which approach BEST protects stored passwords if the…Software Development Security
All 110 free CISSP questions by domain · 15 sample questions on one page
Practise the full CISSP exam
This question is one of a small free sample from the CertRidge CISSP bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with ISC2; never copied from the real exam.