Server-Side Request Forgery
Talk it through out loud with your AI coach.
The problem
- hard
- Pro
Your app has a feature that fetches a preview of any web address a user pastes in. Explain how an attacker could abuse this with server-side request forgery, what they could reach in a cloud environment, and how you'd defend against it.
What a strong answer covers
- How the feature lets an attacker borrow the server's network position.
- What valuable targets are typically reachable from inside a cloud network.
- Checks on where a request is really going, including after redirects and DNS lookups.
- Isolating the fetching code at the network level.
Common mistake: Checking the URL text but not the address it finally resolves or redirects to.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud