Skillpedia
الأمان5.4k · #14936

hunt-ssrf

ما الذي تفعله

تختبر هذه المهارة تزوير الطلبات من جهة الخادم (SSRF)، حيث يجعل المهاجم الخادم يجلب عناوين لا يجب أن يصل إليها. وهي مخصصة للاختبار المصرّح به للميزات التي تجلب الروابط أو المعاينات أو الاستيرادات.

متى تستخدمها

  • ✓عندما تجلب ميزة عنوان ويب تقدّمه أنت، مثل معاينة رابط أو استيراد ملف.
  • ✓عندما يعمل التطبيق في السحابة وقد يصل إلى خدمة البيانات الوصفية الخاصة به.
  • ✓عندما يمكن الوصول إلى خدمة داخلية عبر خادم التطبيق.

رابط المهارة

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

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

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

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

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

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

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

“تجلب ميزة معاينة الروابط لدينا عناوين URL. هل يمكنك التحقق في اختبارنا المصرّح به من أنها تستطيع الوصول إلى عناوين داخلية؟”

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

كيف تعمل

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

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

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

Crown Jewel Targets

SSRF is highest-value when the target runs on cloud infrastructure (AWS, GCP, Azure) where metadata services expose credentials, or when the server sits inside a complex internal network (Kubernetes clusters, microservice meshes, internal APIs). Priority targets:

  • Cloud-hosted SaaS products (GCP metadata at 169.254.169.254 or metadata.google.internal, AWS IMDSv1)
  • Kubernetes/orchestration platforms — aggregated API servers, metrics-server, kubelet endpoints expose privileged cluster operations
  • Internal developer tooling — CI/CD, workflow orchestration (Flyte, Argo), admin panels not exposed externally
  • Link preview / URL fetching features — Reddit-style preview APIs, Slack-style unfurling, media processors
  • Dataset/file import pipelines — anything that fetches remote URLs on behalf of a user
  • Enterprise self-hosted software (GitHub Enterprise, GitLab) — SSRF frequently chains to RCE via internal services

Payouts are highest when SSRF reaches: cloud credentials → account takeover, internal admin APIs → data exfil, or chains to RCE.


OOB-Or-It-Didn't-Happen Gate (Read First)

Claims of blind SSRF require an out-of-band (OOB) confirmation. Always. No exceptions.

OOB means: a Burp Collaborator domain, an interactsh-client listener, a canarytoken, or any DNS+HTTP receiver you control that confirms the server actually made an outbound network connection on your behalf.

What is NOT confirmation of SSRF

  • The server echoing your URL back in an error message. Example: "The Web application at http://evil.example.com/x could not be found" — this is the server formatting your input into an error string, NOT making an outbound HTTP request. The error came from string formatting, not from network failure.
  • The server returning a different status code for an external URL vs localhost. Different error responses can come from URL-scheme validators, not from actual fetching.
  • A delayed response when the URL is sent. Delay can come from DNS resolution attempts within the parser, not from completed HTTP fetches.

What IS confirmation of SSRF

  • A DNS lookup for your unique Collaborator subdomain appears in the OOB listener.
  • An HTTP request to your Collaborator HTTP endpoint with the server's source IP and User-Agent.
  • For SSRF in JavaScript-execution contexts (PDF renderers, headless browsers), a fetch from the server to your callback URL.

Default workflow

  1. Plant the Collaborator payload first. Sub-tagging (dlsrcurl.<collab>, import.<collab>) only works if your listener actually reports the queried subdomain back to you — verify that before relying on it. Burp's get_collaborator_interactions keys results by payload ID, not by subdomain, so several sub-tags generated from one payload are indistinguishable in the output. When that is the case, generate a fresh payload per candidate parameter and send exactly one request per payload.
  2. Send the request to the target endpoint.
  3. Wait 30–120 seconds, then poll the OOB listener.
  4. Only after a confirmed callback do you claim SSRF.
  5. If zero callbacks across all sub-tagged sinks: SSRF claims must be retracted, even if error messages echo URLs.

Lesson from a authorized engagement: SharePoint's /_layouts/15/download.aspx?SourceUrl= returned 500 with the title "The Web application at <attacker-URL> could not be found". Initial scan flagged this as SSRF (server clearly processed the URL). 38 Collaborator-tagged payloads across 12+ URL-accepting parameters yielded zero DNS or HTTP interactions. The "echo" was client-side error-string formatting; the server never made an outbound HTTP request. The path is actually an SP-internal SPFile/SPWebApplication resolver, not a generic URL fetcher. Reporting this as SSRF would have been N/A'd at triage.

Attribute the callback to ONE parameter before reporting

A callback proves the server made a request. It does not tell you which parameter caused it, and the fix depends entirely on that.

BAD   — four candidate fields, one payload, fired in one batch
        -> callbacks arrive, attribution impossible, retest required

GOOD  — fresh payload per field, one request each, poll between
        url      -> callbacks    <- this is the sink
        apiUrl   -> none
        endpoint -> none
        target   -> none

Run the negative control. A parameter that produces *

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

لماذا نحتاج إلى استدعاء؟

تشترط المهارة تأكيد الاستدعاء الخارجي للحالات العمياء، حتى لا تُبلَّغ التخمينات.

لماذا تهم بيانات السحابة الوصفية؟

تذكر المهارة أن خدمات البيانات الوصفية قد تكشف بيانات اعتماد السحابة، ما قد يؤدي إلى السيطرة على الحساب.

هل تُغطى حيل DNS؟

نعم. تذكر المهارة DNS rebinding كطريقة يمكن بها تجاوز فلاتر العناوين.

التفاصيل

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

Hunting skill for ssrf vulnerabilities. Built from 15 public bug bounty reports including AWS metadata SSRF (HackerOne $25k Analytics PDF, Shopify Exchange $25k, Capital One 106M-record breach, Dropbox/HelloSign $4,913), GCP metadata SSRF (Snapchat $4k), Azure IMDS SSRF (Azure DevOps $15k chain, ChatGPT Custom Actions MSRC), DNS rebinding SSRF (Concrete CMS, GitLab UrlBlocker), gopher-protocol-to-Redis-RCE (Yahoo Mail $15k), link-preview SSRF (Reddit Matrix $6k), and headless-browser PDF-generator SSRF chains. Use when hunting SSRF on any target — OOB Collaborator confirmation mandatory for bl

repo: elementalsouls/Claude-BugHunter

الشعبية

نجوم GitHub
5.4k
الترتيب
#14936
الترخيص
MIT
آخر تحديث
2‏/11‏/2026

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

0

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

التعليقات

  • …

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

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