Skillpedia
الأمان48k · #4910

hunt-xss

ما الذي تفعله

تساعد هذه المهارة على إيجاد ثغرات أمنية تُسمى XSS (البرمجة النصية عبر المواقع) في المواقع. تتحقق مما إذا كان يمكن إدراج شيفرة خبيثة وتشغيلها في المتصفح.

متى تستخدمها

  • ✓عندما تختبر أمان موقع بإذن.
  • ✓لتعلّم كيف تعمل ثغرات XSS.
  • ✓عندما تتحقق مما إذا كان الموقع يحمي نفسه جيدًا من حقن الشيفرة.

رابط المهارة

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-xss/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-xss/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أريد التحقق مما إذا كان الموقع «example.com» معرضًا لـ XSS. ما الرابط الدقيق، وهل لديّ إذن كتابي للاختبار؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تحاول هذه المهارة إدراج قطع صغيرة من الشيفرة في أجزاء مختلفة من الموقع. فإذا ظهرت الشيفرة دون تغيير في استجابة الموقع، فهذا يدل على وجود ثغرة.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

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.

…

الأسئلة الشائعة

ما هو XSS؟

XSS ثغرة أمنية يستطيع فيها المهاجم جعل موقع ينفذ شيفرة خبيثة في متصفح شخص آخر، مثل سرقة المعلومات.

لماذا أحتاج إلى إذن؟

اختبار المواقع من حيث الأمان دون إذن غير قانوني. يجب استخدام هذه المهارة فقط في الأماكن التي لديك فيها تفويض صريح للاختبار.

كيف أعرف أنني وجدت ثغرة؟

تبحث المهارة عن شيفرة محددة (مثل `<script>alert(1234)</script>`) تظهر كما أُرسلت تمامًا في استجابة الموقع، دون أن تكون «مشفّرة» أو متغيرة.

التفاصيل

الوصف الأصلي من المؤلف

Hunting skill for xss vulnerabilities.

repo: sickn33/agentic-awesome-skills

الشعبية

نجوم GitHub
48k
الترتيب
#4910
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة