본문으로 건너뛰기
Skillpedia
보안5.4k · #14940

hunt-xss

하는 일

이 스킬은 사용자 입력이 적절한 인코딩 없이 페이지에 표시되어 방문자의 브라우저에서 스크립트가 실행되는지 테스트합니다. 검색, 댓글, 프로필 필드를 허가받아 테스트할 때 사용합니다.

사용하는 경우

  • ✓검색이나 댓글 필드가 입력한 내용을 페이지에 그대로 되돌려 줄 때.
  • ✓입력이 링크, 속성, 스크립트 문맥 안에 나타날 때.
  • ✓다른 사용자가 보는 페이지에서 스크립트가 실행될 수 있는지 확인하고 싶을 때.

스킬 링크

https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-xss/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-xss/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에서 그대로 가져왔습니다.

Autonomous Testing Priority

Verify reflection before claiming XSS — encoding is everything.

Your payload must appear in the response body with angle brackets UNESCAPED. <script> is XSS. &lt;script&gt; is safe encoding — not vulnerable.

Use a UNIQUE NUMERIC CANARY in your proof payload — e.g. <script>alert(91234)</script> or "><img src=x onerror=alert(91234)>. Pick a distinctive 4+ digit number, not alert(1). Practice pages are full of example payloads like alert(1)/alert('XSS') in their hint text; a unique number is how you tell YOUR reflected payload apart from the page's decoy examples. Proof = your alert(<canary>) shows up in the response with raw, unescaped angle brackets.

Try these contexts in order:

  1. Inline script injection (works when HTML context allows new tags):

    <script>alert(CANARY)</script>
    

    Use whatever canary string your proof contract specifies. Confirmed when <script>alert(CANARY) appears literally (not HTML-encoded) in the response.

  2. Attribute event injection (when < is filtered but attributes are injectable):

    " onmouseover="alert(CANARY)
    " onerror="alert(CANARY)
    " onload="alert(CANARY)
    
  3. URL/href context:

    javascript:alert(CANARY)
    

Distinguishing success from failure:

  • Vulnerable: response contains <script>alert( unescaped — browser would execute it
  • Filtered/safe: response contains &lt;script&gt; or &#x3C;script&#x3E; — properly encoded
  • Blocked: response is an error, or the reflected value is absent entirely

For stored XSS: inject into a field that other pages display (comments, usernames, ticket titles). Then fetch the rendering page and check for unescaped payload. The payload executes when any user views that page — higher severity than reflected.


Crown Jewel Targets

XSS is high-value when it combines privileged context + persistent delivery + scope escalation. The highest payouts come from:

  • Admin panels and authenticated dashboards (e.g., */admin, */settings) — attacker can hijack sessions with elevated privileges, exfiltrate tokens, or pivot to account takeover
  • Payment/financial flows (paypal.com, checkout pages, currency converters) — XSS here enables credential harvesting and financial fraud at scale
  • Stored XSS in collaborative features (wikis, markdown renderers, issue trackers, RDoc, labels, tags) — one payload infects every viewer, multiplying impact
  • SSO/signin pages (e.g., paypal.com/signin) — XSS here is critical because it can steal auth tokens across the entire platform
  • Shared SaaS tenant surfaces (*.myshopify.com, api.collabs.*) — XSS in one tenant's context can bleed across tenant boundaries
  • Help/documentation sites (help.shopify.com) — lower severity individually, but often have looser sanitization and trusted user perception
  • SVG/file upload endpoints — frequently bypasses CSP and sanitization simultaneously

Asset types that pay most: Main product domains > Admin subdomains > API endpoints > Marketing/help sites


OOB-Or-It-Didn't-Happen Gate (Blind / Stored XSS)

For blind and stored XSS — claims require an out-of-band confirmation, the same as blind SSRF. The OOB receiver fires when the payload actually executes in a browser somewhere (an admin reviewing logs, a SOC analyst opening a ticket, an email rendering a stored payload).

What is NOT confirmation

  • ASP.NET request validator rejected your < and returned a different status code → not XSS, that's WAF noise.
  • Your payload appears in the response body URL-encoded or HTML-encoded → not XSS, that's correct output encoding.
  • The form action attribute contains your payload string as %22onclick%3D… → not XSS, the browser does NOT decode URL encoding inside HTML attribute values; the %22 stays as literal %22 in the DOM.
  • Your <script> tag appears in the response as &lt;script&gt; → not XSS, that's escaping.

What IS confirmation

  • A request to your unique Collaborator subdomain (e.g., bxss-err-<random>.<collab>.oastify.com) arrives in the OOB listener after your payload was stored / reflected / queued.
  • For stored XSS: the request arrives hours or days later when an admin views the affected resource. Plant payloads early in the engagement and keep the listener open.
  • The User-Agent of the firing request is a browser (Mozilla/Chrome), not the server's own backend HTTP clie
자주 묻는 질문

실제 스크립팅 취약점과 안전한 텍스트는 어떻게 다른가요?

안전한 텍스트는 꺾쇠 괄호가 인코딩되어 돌아오고, 안전하지 않은 텍스트는 꺾쇠 괄호가 그대로 돌아옵니다.

고유한 숫자를 쓰는 이유는 무엇인가요?

스킬은 고유한 숫자가 테스트 입력을 페이지에 이미 있는 예시 페이로드와 구별해 준다고 설명합니다.

스크립트를 실행하지 않는 마크업은 어디서 다루나요?

스크립트를 실행하지 않는 마크업은 별도의 HTML 삽입 스킬이 다룬다고 스킬은 설명합니다.

상세 정보

작성자의 원본 설명

Hunting skill for xss vulnerabilities. Built from 174 public bug bounty reports. Use when hunting xss on any target. For markup injection that reflects raw HTML but does NOT execute JavaScript (no `<script>`/event-handler execution), see hunt-html-injection — escalate here once script execution is possible.

repo: elementalsouls/Claude-BugHunter

인기도

GitHub 스타
5.4k
순위
#14940
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬