security-review-owasp-unvalidated-redirects-and-forwards

Review code and configuration for unsafe redirect and forward targets.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/sjinks/ai-owasp-skillset --skill security-review-owasp-unvalidated-redirects-and-forwards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-review-owasp-unvalidated-redirects-and-forwards
Source: https://github.com/sjinks/ai-owasp-skillset/tree/main/.github/skills/security-review-owasp-unvalidated-redirects-and-forwards
Command: npx skills add https://github.com/sjinks/ai-owasp-skillset --skill security-review-owasp-unvalidated-redirects-and-forwards

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps reviewers find unsafe redirect and forward logic where attacker-controlled input can influence destination selection, trust boundaries, or privileged routing decisions.

Core Features & Use Cases

  • Redirect and Forward Analysis: Traces how untrusted values flow into redirectors, forwards, route selectors, and similar sinks.
  • Trust Boundary Review: Evaluates allowlists, canonicalization, validation timing, and object or parameter binding that affect exploitability.
  • Security Review Workflow: Supports code, configuration, architecture, tests, and operational controls for login flows, callback handlers, post-action navigation, and other destination-based behaviors.

Quick Start

Use the security-review-owasp-unvalidated-redirects-and-forwards skill to review the provided files or flow for unsafe redirect targets and forwarding logic.

Frequently Asked Questions about security-review-owasp-unvalidated-redirects-and-forwards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review code for unvalidated redirects and forwards?

To review code for unvalidated redirects and forwards, trace untrusted input values as they flow into redirect targets, forwards, and route selectors. Validate allowlists, canonicalization, and trust boundaries to confirm exploitability and downstream privilege impact.

What is an unvalidated forward vulnerability in login callback flows?

An unvalidated forward vulnerability in login callback flows occurs when attacker-controlled input influences destination selection or privileged routing decisions. It allows unsafe navigation to attacker-specified destinations if allowlists and trust boundaries are not properly enforced.

How do unvalidated redirects affect authentication and post-action navigation?

Unvalidated redirects affect authentication and post-action navigation by accepting attacker-controlled destinations, bypassing trust boundaries. Reviewing object and parameter binding ensures that untrusted values cannot manipulate privileged routing decisions or downstream access controls.

Can I use this security review approach for configuration and architecture files?

Yes, you can use this security review approach for configuration and architecture files. The review evaluates unsafe redirect targets and forwarding logic across code, configuration, architecture, tests, and operational controls to identify exploitable routing vulnerabilities.

When do I need to check canonicalization and allowlists for redirect validation?

You need to check canonicalization and allowlists for redirect validation when untrusted input reaches redirectors or route selectors. Evidence-based validation of these controls is required before confirming a finding to accurately assess exploitability and trust boundary violations.

What is the best way to identify unsafe routing from untrusted input?

The best way to identify unsafe routing from untrusted input is to trace data flows into redirectors and forwards, then evaluate validation timing, allowlists, and parameter binding. Confirming exploitability requires assessing downstream privilege impact across affected flows.