Skip to interview prep
Apexed

55. A feature fetches a user-supplied URL on the server. What would a defensive review examine?

HardApplication & data security

Technical
Show model answer

Determine which destinations and protocols the business function actually needs, and restrict requests to that supported scope. Review resolution, redirects, credentials and network reachability rather than trusting a text prefix check.

Use reviewed destination validation and network egress controls, with bounded response size and time. Test permitted and prohibited destination classes in an authorized environment using safe fixtures, and avoid returning sensitive internal response details to the caller.

What interviewers listen for

  • Limit required destination classes
  • Review resolution and redirect behavior
  • Combine validation with egress and response limits
A feature fetches a user-supplied URL on the server. What would a defensive review examine — Cybersecurity interview question — Apexed