Logo Auditing Open Redirect And Forced Navigation

Auditing Open Redirect And Forced Navigation

Tổ chức
UnboundCompute
auditing-open-redirect-and-forced-navigation

Kiểm tra luồng chuyển hướng và điều hướng, nơi URL return, next hoặc callback không đáng tin cậy, một giá trị đã lưu hoặc referer điều khiển chuyển hướng phía máy chủ, lệnh gán location phía máy khách hoặc meta refresh đến đích do kẻ tấn công chọn. Điều này có thể dẫn đến lừa đảo, thu thập thông tin đăng nhập trên trang giả mạo hoặc đánh cắp mã OAuth hay token được mang theo trong chuyển hướng. Dùng khi một tham số hoặc giá trị đã lưu quyết định nơi người dùng được đưa đến sau khi đăng nhập, đăng xuất, thực hiện thao tác hoặc hoàn tất bước ủy quyền. Bao gồm host dạng protocol-relative và dấu gạch chéo ngược, thủ thuật với userinfo và khoảng trắng, cùng các scheme nguy hiểm mà danh sách cho phép ngây thơ có thể bỏ sót. URL đích không đáng tin cậy là nguồn; chuyển hướng hoặc điều hướng là đích; còn lỗi là đưa người dùng đến nơi do kẻ tấn công kiểm soát.

Tổng quan

Nhà phát hànhUnboundCompute
Kho mãsecurity-agent-skills
Tên kỹ năngauditing-open-redirect-and-forced-navigation
Sao
27
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được UnboundCompute công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Auditing Open Redirect And Forced Navigation trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-open-redirect-and-forced-navigation
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-open-redirect-and-forced-navigation .claude/skills/auditing-open-redirect-and-forced-navigation
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Auditing Open Redirect And Forced Navigation trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Auditing Open Redirect And Forced Navigation ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Auditing Open Redirect And Forced Navigation với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Auditing open redirect and forced navigation: when the app sends the user wherever the URL says

An application constantly sends users onward: back to where they were after login, to a success page after an action, to an identity provider and back during authorization. When the destination comes from an untrusted parameter, a stored value, or a header, and the app redirects there without confirming it is one of its own pages, the app becomes a trusted springboard to an attacker's site. The link starts on the real domain, so it survives a glance and a mail filter, and lands on a lookalike login that harvests credentials. Worse, when the redirect carries an authorization code or a token in the URL, forcing the destination steals that secret outright. The bug is not the redirect feature; it is a destination taken from the request and trusted without an allowlist. You find it by locating every redirect and navigation and asking whether an attacker chooses where it goes.

When to use

  • A return, next, redirect, callback, or continue parameter controls where a user is sent after an action.
  • Client code assigns a location or writes a meta refresh from a value influenced by the request or storage.
  • An authorization or single-sign-on flow returns to a URL supplied in the request and carries a code.

Scope check

Test redirect behavior only against applications you own or are authorized to assess, sending the redirect to a benign destination you control rather than a live phishing page, and never capturing a real user's token. A confirmed forced redirect that carries a token is credential theft, so keep every probe within the authorized scope. If you can't name the authorization, stop.

The loop

  1. Establish whether the target is checked against an allowlist first. For each redirect, determine whether the destination is confirmed to be one of the app's own pages, by an allowlist of paths or hosts matched exactly, or whether it is used as given. This is the false-positive killer: a redirect that only ever sends the user to a fixed internal path, or validates the target against an exact allowlist, is not open, while one that reflects the parameter is. Name the check before crafting a target.

  2. Map every redirect and navigation fed untrusted input. Trace return and next parameters, stored redirect values, and referer or other headers into server redirects, client-side location assignments, and meta refreshes, including the return URL of any authorization flow. Each is a candidate sink.

  3. Test the bypasses a naive check misses. A check that requires the target to start with a slash is beaten by a protocol-relative slash-slash-host and by a backslash the browser treats as a slash; a host allowlist is beaten by a userinfo at-sign, an embedded credential, a lookalike or encoded host, and trailing whitespace or control characters. Decide which of these the check as written lets through.

  4. Judge the destination scheme. A redirect that permits a script or data scheme in a client-side navigation is not only off-site but executes in the current origin; confirm whether the sink restricts to HTTP and HTTPS or passes any scheme, since the impact differs from a plain off-site send.

  5. Follow what the redirect carries. A plain open redirect is a phishing primitive; a redirect in an authorization flow carries a code or token in the URL or fragment, so forcing its destination steals that secret. Determine whether the sink is a bare navigation or one that transports a credential, because that sets the severity.

  6. Confirm and record. Confirm by supplying a target that resolves to a benign host you control and observing the app send the user there, and for authorization flows, the code or token arriving at your host, on an isolated instance. Kill the lead if the target is matched against an exact allowlist of the app's own pages, if only a fixed internal path is used, or if no untrusted value reaches the redirect. Record the parameter, the sink, the bypass used, and whether a credential was carried, or set a kill_reason.

Where forced navigation leaks

  • The allowlist is the whole defense. A destination confirmed to be one of the app's own pages cannot be redirected off-site; a reflected parameter can. The presence and exactness of the allowlist is the finding.
  • Starts-with-slash is not enough. A protocol-relative slash-slash-host and a backslash-host both pass a naive leading-slash check and send the user to another origin.
  • Host checks fall to userinfo and lookalikes. An at-sign puts the real host in the userinfo and the attacker host after it, and an encoded or homoglyph host defeats a substring match; only an exact host comparison holds.
  • Schemes matter on the client. A client-side navigation that accepts a script or data scheme executes in the origin, turning an open redirect into script execution rather than a mere off-site send.
  • Authorization redirects carry secrets. When the redirect transports a code or token, controlling the destination hands that credential to the attacker, which is far worse than phishing.

Worked example (a confirm and a kill)

Confirm. A login flow reflects a return parameter into the post-login redirect after only checking that it begins with a slash. A value of backslash-backslash-host slips past the check, and the app sends the authenticated user, carrying the session-establishing fragment, to a host the tester controls on an isolated instance. Confirmed open redirect carrying a credential to an attacker host, high, remediation = validate the return target against an exact allowlist of the app's own paths, reject protocol-relative, backslash, userinfo, and non-HTTP targets, and never place a code or token on a redirect whose destination is client-influenced.

Kill. The same flow resolves the return target against an allowlist of the app's own relative paths, rejects any absolute URL, protocol-relative or backslash form, userinfo, and non-HTTP scheme, and falls back to a fixed internal path when the target is not on the list. A crafted off-site target is discarded and the user lands on the default page. Killed, kill_reason = "redirect target is matched against an exact allowlist of the app's own paths and every off-site or alternate-scheme form is rejected; the destination is never attacker-chosen and carries no credential off-site."

Rationalizations to reject

  • "It only redirects within our site." -> Confirm that with an exact allowlist; a leading-slash or substring check is bypassed by protocol-relative, backslash, and userinfo forms that leave the site.
  • "An open redirect is low severity." -> On an authorization flow it steals the code or token, and anywhere it is a credible phishing springboard from your trusted domain; rate it by what it carries.
  • "We block http and https other hosts." -> Also block protocol-relative and backslash hosts and non-HTTP schemes; the bypasses live in the forms a naive host check does not parse.
  • "The parameter is validated." -> Validated how; a check that the value is a URL or starts with a slash is not a check that it is one of your pages. Only an exact allowlist answers that.
  • "Users can see the address bar." -> The link begins on your domain and the redirect is instant; the user and the mail filter both trust the starting host, which is the whole point of the abuse.

Executing this in practice

You need every redirect and client-side navigation fed an untrusted target, the check applied to each, and whether the sink carries a code or token. For each, decide whether an allowlist confines the destination to the app's own pages or a bypass reaches another origin, and whether the scheme is restricted. Reading the validation settles most leads; supplying a target that resolves to a benign controlled host, and watching for a carried credential, on an isolated instance settles the rest.

Related

  • hunting-crlf-and-response-splitting - the Location header is the shared sink; a redirect target can also carry a CRLF, so the two analyses meet on the same header.
  • hunting-host-header-and-url-parsing-trust - the parser differentials and host-confusion tricks that beat a redirect allowlist are the same ones that skill treats for URL parsing trust.
  • hunting-unicode-normalization-and-canonicalization-bypass - an encoded or homoglyph host that defeats the redirect allowlist is a canonicalization failure that skill analyzes directly.
  • hunting-reflected-and-stored-xss - a client-side navigation that accepts a script or data scheme turns an open redirect into the script execution that skill hunts.
  • FINDING-SCHEMA.md - source = the untrusted target URL, sink = the redirect or navigation, evidence = the user sent to a benign controlled host, or a carried code or token arriving there, on an isolated instance.

Câu hỏi thường gặp

Kỹ năng AI Auditing Open Redirect And Forced Navigation làm được gì?

Kiểm tra luồng chuyển hướng và điều hướng, nơi URL return, next hoặc callback không đáng tin cậy, một giá trị đã lưu hoặc referer điều khiển chuyển hướng phía máy chủ, lệnh gán location phía máy khách hoặc meta refresh đến đích do kẻ tấn công chọn. Điều này có thể dẫn đến lừa đảo, thu thập thông tin đăng nhập trên trang giả mạo hoặc đánh cắp mã OAuth hay token được mang theo trong chuyển hướng. Dùng khi một tham số hoặc giá trị đã lưu quyết định nơi người dùng được đưa đến sau khi đăng nhập, đăng xuất, thực hiện thao tác hoặc hoàn tất bước ủy quyền. Bao gồm host dạng protocol-relative và dấ...

Vì sao nên dùng Auditing Open Redirect And Forced Navigation trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Auditing Open Redirect And Forced Navigation là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Auditing Open Redirect And Forced Navigation trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-open-redirect-and-forced-navigation. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Auditing Open Redirect And Forced Navigation?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Auditing Open Redirect And Forced Navigation với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Auditing Open Redirect And Forced Navigation với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Auditing Open Redirect And Forced Navigation có miễn phí không?

Có. Kỹ năng này được UnboundCompute phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇