hunt-xss
ما الذي تفعله
تختبر هذه المهارة ما إذا كانت مدخلات المستخدم تظهر في الصفحة دون ترميز مناسب، ما يسمح بتشغيل نص برمجي في متصفح الزائر. وهي مخصصة للاختبار المصرّح به لحقول البحث والتعليقات والملفات الشخصية.
متى تستخدمها
- ✓عندما يعيد حقل بحث أو تعليق عرض ما تكتبه على الصفحة.
- ✓عندما يظهر مدخلك داخل رابط أو خاصية أو سياق نص برمجي.
- ✓عندما تريد التأكد من أن نصًا برمجيًا يمكن أن يعمل في صفحة يراها مستخدمون آخرون.
رابط المهارة
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-xss/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“يعيد صندوق التعليقات لدينا عرض النص على الصفحة. هل يمكنك التحقق من البرمجة النصية عبر المواقع في اختبارنا المصرّح به؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يُدخل الوكيل علامة اختبار فريدة ويتحقق مما إذا كانت الصفحة تعيدها مع أقواس غير مُرمَّزة. ثم يجرّب سياقات صفحة مختلفة ويؤكد التشغيل في إثبات آمن فقط.
المحتوى التقني (ملف 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. <script> 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:
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.Attribute event injection (when
<is filtered but attributes are injectable):" onmouseover="alert(CANARY) " onerror="alert(CANARY) " onload="alert(CANARY)URL/href context:
javascript:alert(CANARY)
Distinguishing success from failure:
- Vulnerable: response contains
<script>alert(unescaped — browser would execute it - Filtered/safe: response contains
<script>or<script>— 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%22stays as literal%22in the DOM. - Your
<script>tag appears in the response as<script>→ 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
الأسئلة الشائعة
كيف يختلف XSS الحقيقي عن النص الآمن؟
النص الآمن يعود مُرمَّزًا، فتظهر الأقواس ككيانات. أما النص غير الآمن فيعود بأقواس خام.
لماذا نستخدم رقمًا فريدًا؟
تذكر المهارة أن الرقم المميز يفرّق اختبارك عن أمثلة الحمولات الموجودة في الصفحة.
متى يُغطّى حقن HTML؟
تذكر المهارة أن العلامات التي لا تشغّل نصوصًا برمجية تغطيها مهارة منفصلة لحقن 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.
الشعبية
- نجوم GitHub
- 5.4k
- الترتيب
- #14940
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
apk-redteam-pipeline
5.4kيساعد وكيلك على اختبار تطبيق Android بحثًا عن نقاط ضعف أمنية، من العثور على ملف APK وفك تجميعه إلى فحص الأسرار المكشوفة.
bugcrowd-reporting
5.4kيساعد وكيلك على كتابة تقارير ثغرات أفضل لمنصة Bugcrowd، باختيار الفئة الصحيحة والرد على اعتراضات خارج النطاق.
cloud-iam-deep
5.4kيساعد وكيلك على فحص ما يمكن أن تصل إليه بيانات اعتماد سحابية وُجدت على AWS أو Azure أو Google Cloud، أثناء اختبار أمني مصرّح به.
enterprise-vpn-attack
5.4kيساعد وكيلك على فحص أجهزة VPN والوصول عن بُعد من Cisco وFortinet وCitrix وغيرها بحثًا عن نقاط ضعف معروفة، أثناء اختبار مصرّح به.
مهارات مشابهة
reverse-engineer-anything
422kيساعد وكيلك على فحص التطبيقات والحزم المنشورة من الداخل ليشرح الميزات ويقارن الإصدارات ويرشد إلى إعادة البناء، باستخدام أداة REA.
1password
394kيساعد وكيلك على إعداد واجهة سطر أوامر 1Password وتسجيل الدخول، وقراءة الأسرار أو حقنها دون طباعة قيمها في المحادثة.
healthcheck
394kيساعد وكيلك على تدقيق جهاز OpenClaw أو خادمه أمنيًا، مثل SSH والجدار الناري والتحديثات، ويقترح إصلاحات آمنة قابلة للتراجع.