عرض عملي: نمذجة تهديدات مسار الدفع
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
model checkout end to end and leave with tests and tickets. Prepares MID-052-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Draw the DFD: browser, gateway, orders, payments (external), PostgreSQL, Kafka; mark trust boundaries.
- Apply STRIDE to each flow; list threats in a table.
- Planned mistake: list only technical threats (SQL injection, XSS). Fix: add business abuse cases (coupon reuse, price tampering in the request body, double charge by retry).
- Rank the top five and write the mitigation for each.
- Write one test per threat (price in body is ignored; coupon unique per customer) and file the rest as backlog items.
اختبر فهمك
Where should the price come from at checkout?
أظهر الإجابة
The server's catalog, never the client request.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.