إساءة استخدام منطق العمل
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
see attacks that use the API exactly as designed.
الموضوعات المخطط لها
- Credential stuffing: stolen passwords tried at scale. Defend with rate limits, MFA, breached-password checks.
- Scraping and bots: price scraping, inventory hoarding. Defend with rate limits, behavior signals, challenges.
- Promo and refund abuse: reusing codes, many accounts, race conditions on "one per customer".
- Controls: server-side limits per account/device/IP, atomic checks (unique constraint), monitoring of unusual patterns.
- No scanner finds these; only people who know the business do.
تفاصيل المخطط المبدئي
عرض عملي
abuse-case table for checkout: coupon reuse, cart hoarding, refund abuse, with a control for each.
اختبر فهمك
Why can scanners not find promo abuse?
أظهر الإجابة
Each request is valid; the abuse lies in the business rules.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.